p = ['0','1','6','8']

n = eval(input())

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

	print('bon')

elif n[-1] in p:

	print('pon')

else:

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

p = ['0','1','6','8']

last = n[-1]

if last == '3':

  print('bon')

elif last in p:

  print('pon')

else:

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

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

+n = eval(input()) -n = eval(input()) -if n[-1] == "3": +last = n[-1] +if last == "3": -elif n[-1] in p: +elif last in p: