number = eval(input())

number = int(number)

last_num = number % 10

last_num = str(last_num)



if last_num == '3':

    print('bon')

elif last_num in '0168':

    print('pon')

else:

    print('hon')
number = eval(input())

last_num = number[-1]



if last_num == '3':

    print('bon')

elif last_num in '0168':

    print('pon')

else:

    print('hon')
number = eval(input())
number = int(number)
last_num = number % 10
last_num = str(last_num)
if last_num == "3":
    print("bon")
elif last_num in "0168":
    print("pon")
else:
    print("hon")

number = eval(input())
last_num = number[-1]
if last_num == "3":
    print("bon")
elif last_num in "0168":
    print("pon")
else:
    print("hon")

-number = int(number) -last_num = number % 10 -last_num = str(last_num) +last_num = number[-1]