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<=7:
    print('Adams')
elif a<=29:
    print('Van Buren')
elif a<=40:
    print('Harding')