n=list(eval(input()))

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

  print('hon')

if int(n[-1]) in [0,1,6,8]:

  print('pon')

if int(n[-1])==3:

  print('bon')
n=input()[-1]

if n=='3':

  print('bon')

elif n in '0168':

  print('pon')

else:

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

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

-n = list(eval(input())) -if int(n[-1]) in [2, 4, 5, 7, 9]: +n = input()[-1] +if n == "3": +    print("bon") +elif n in "0168": +    print("pon") +else: -if int(n[-1]) in [0, 1, 6, 8]: -    print("pon") -if int(n[-1]) == 3: -    print("bon")