n = eval(input())

c = n[-1]



if c in ["3"]:

  print("bon")

elif c in ["0", "1", "6", "8"]:

  print("pon")

else:

  print("hon")
n = int(eval(input()))

c = n % 10



if c in [3]:

    print("bon")

elif c in [0, 1, 6, 8]:

    print("pon")

else:

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

n = int(eval(input()))
c = n % 10
if c in [3]:
    print("bon")
elif c in [0, 1, 6, 8]:
    print("pon")
else:
    print("hon")

-n = eval(input()) -c = n[-1] -if c in ["3"]: +n = int(eval(input())) +c = n % 10 +if c in [3]: -elif c in ["0", "1", "6", "8"]: +elif c in [0, 1, 6, 8]: