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

Output a single string.
The input contains a single integer *a* (1 ≤ *a* ≤ 40).
#author: riyan

if __name__ == '__main__':
    n = int(input().strip())
    
    if n == 2:
        print('Adams')
    elif n == 8:
        print('Van Buren')
    elif n == 29:
        print('Harding')