number = eval(input())



if number[-1] == '3':

    print('bon')

elif number[-1] in ['0', '6', '1', '8']:

    print('pon')

else:

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

honlist = ["2","4","5","7","9"]

ponList = ["0","1","6","8"]

if digitsStr[-1] == '3':

    print('bon')

elif digitsStr[-1] in honlist:

    print('hon')

elif digitsStr[-1] in ponList:

    print('pon')
number = eval(input())
if number[-1] == "3":
    print("bon")
elif number[-1] in ["0", "6", "1", "8"]:
    print("pon")
else:
    print("hon")

digitsStr = eval(input())
honlist = ["2", "4", "5", "7", "9"]
ponList = ["0", "1", "6", "8"]
if digitsStr[-1] == "3":
    print("bon")
elif digitsStr[-1] in honlist:
    print("hon")
elif digitsStr[-1] in ponList:
    print("pon")

-number = eval(input()) -if number[-1] == "3": +digitsStr = eval(input()) +honlist = ["2", "4", "5", "7", "9"] +ponList = ["0", "1", "6", "8"] +if digitsStr[-1] == "3": -elif number[-1] in ["0", "6", "1", "8"]: +elif digitsStr[-1] in honlist: +    print("hon") +elif digitsStr[-1] in ponList: -else: -    print("hon")