The input contains a single integer *a* (1 ≤ *a* ≤ 40).

Output a single string.
The input contains a single integer *a* (1 ≤ *a* ≤ 40).
a = int(input())
if a == 1:
    print('Washington')
if a == 2:
    print('Adams')
if a == 3:
    print('Jefferson')
if a == 4:
    print('Madison')
if a == 5:
    print('Monroe')
if a == 6:
    print('Quincy Adams')
if a == 7:
    print('Jackson')
if a == 8:
    print('Van Buren')
if a == 9:
    print('Henry Harrison')
if a == 10:
    print('Tyler')
if a == 11:
    print('Knox Polk')
if a == 12:
    print('Taylor')
if a == 13:
    print('Fillmore')
if a == 14:
    print('Pierce')
if a == 15:
    print('Buchanan')
if a == 16:
    print('Lincoln')
if a == 17:
    print('Johnson')
if a == 18:
    print('Simpson Grant')
if a == 19:
    print('Birchard Hayes')
if a == 20:
    print('Abram Garfield')
if a == 21:
    print('Alan Arthur')
if a == 22:
    print('Cleveland')
if a == 23:
    print('Harrison')
if a == 24:
    print('Cleveland')
if a == 25:
    print('McKinley')
if a == 26:
    print('Roosevelt')
if a == 27:
    print('Howard Taft')
if a == 28:
    print('Wilson')
if a == 29:
    print('Gamaliel Harding')
if a == 30:
    print('Coolidge')
if a == 31:
    print('Clark Hoover')
if a == 32:
    print('Delano Roosevelt')
if a == 33:
    print('Truman')
if a == 34:
    print('David Eisenhower')
if a == 35:
    print('Fitzgerald Kennedy')
if a == 36:
    print('Baines Johnson')
if a == 37:
    print('Milhous Nixon')
if a == 38:
    print('Rudolph Ford')
if a == 39:
    print('Earl Carter')
if a == 40:
    print('Wilson Reagan')
