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('Harrison')
if a==10:
    print('Tyler')
if a==11:
    print('Regiment')
if a==12:
    print('Taylor')
if a==13:
    print('Fillmore')
if a==14:
    print('Pier')
if a==15:
    print('Buchanan')
if a==16:
    print('Lincoln')
if a==17:
    print('Johnson')
if a==18:
    print('Grant')
if a==19:
    print('Hayes')
if a==20:
    print('Garfield')
if a==21:
    print('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('Harding')
if a==30:
    print('Coolidge')
if a==31:
    print('Hoover')
if a==32:
    print('Roosevelt')
if a==33:
    print('Truman')
if a==34:
    print('Eisenhower')
if a==35:
    print('Kennedy')
if a==36:
    print('Johnson')
if a==37:
    print('Nixon')
if a==38:
    print('Ford')
if a==39:
    print('Carter')
if a==40:
    print('Reagan')