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