n = eval(input())

#print(n[len(n) - 1])

if n[len(n) - 1] in ['2','4','5','7','9']:

  print('hon')

elif n[len(n) - 1] in ['0','1','6','8']:

  print('pon')

else:

  print('bon')

n = int(eval(input())) % 10

if n in [2, 4, 5, 7, 9]:

  print('hon')

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

  print('pon')

else:

  print('bon')
n = eval(input())
# print(n[len(n) - 1])
if n[len(n) - 1] in ["2", "4", "5", "7", "9"]:
    print("hon")
elif n[len(n) - 1] in ["0", "1", "6", "8"]:
    print("pon")
else:
    print("bon")

n = int(eval(input())) % 10
if n in [2, 4, 5, 7, 9]:
    print("hon")
elif n in [0, 1, 6, 8]:
    print("pon")
else:
    print("bon")

-n = eval(input()) -# print(n[len(n) - 1]) -if n[len(n) - 1] in ["2", "4", "5", "7", "9"]: +n = int(eval(input())) % 10 +if n in [2, 4, 5, 7, 9]: -elif n[len(n) - 1] in ["0", "1", "6", "8"]: +elif n in [0, 1, 6, 8]: