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 =["Washington","Adams","Jefferson","Madison","Monroe","Quincy Adams", "Jackson","Van Buren","Henry Harrison","Tyler", "Polk","Taylor","Fillmore", "Pierce","Buchanan","Lincoln", "Johnson", "Grant", "Hayes","Garfield","Arthur", "Cleveland","Harrison","Cleveland", "McKinley", "Roosevelt","Howard Taft","Wilson", "Harding","Coolidg","Hoover","Roosevelt", "Truman", "Eisenhower","Kennedy", "Johnson", "Nixon", "Ford", "Carter", "Reagan","Bush","Clinton", "Bush", "Obama"]
num = int(input())
print(a[num-1])