N = input()
if N == 2:
    print('hon')
elif N == 4:
    print('hon')
elif N == 5:
    print('hon')
elif N == 7:
    print('hon')
elif N == 9:
    print('hon')
elif N == 3:
    print('bon')
else:
    print('pon')