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

Output a single string.
The input contains a single integer *a* (1 ≤ *a* ≤ 40).
n=int(input())
if n<8:
    print("Adams")
elif n>=8 and n<29:
    print("Van Buren")
else:
    print("Harding")
    
