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())
pr = ['Washington', 'Adams', 'Jefferson', 'Madison', 'Monroe', 'Quincy Adams', 'Jackson', 'Van Buren', 'Henry Harrison', 'Tyler', 'Polk', 'Taylor', 'Fillmore', 'Pierce', 'Buchanan', 'Lincoln', 'Johnson', 'S. Grant', 'B. Hayes', 'A. Garfield', 'A. Arthur', 'Cleveland', 'Harrison', 'Cleveland', 'McKinley', 'Roosevelt', 'H. Taft', 'Wilson', 'Harding', 'Coolidge', 'Hoover', 'D. Roosevelt', 'S Truman', 'D. Eisenhower', 'F. Kennedy', 'B. Johnson', 'M. Nixon', 'R. Ford', 'Carter', 'W. Reagan', 'Bush', 'J. Clinton']
print(pr[a-1])
