a  = input()
if a[0] == '2' or a[0] == '4' or a[0] == '5' or a[0] == '7' or a[0] == '9':
    print('hon')
elif a[0] == '0' or a[0] == '1' or a[0] == '6' or a[0] == '8':
    print('pon')
else:
    print('bon')