n=int(eval(input()))

digit=n%10

if digit==0 or digit==1 or digit==6 or digit==8:

  print('pon')

elif digit==2 or digit==4 or digit==5 or digit==7 or digit==9:

  print('hon')

elif digit==3:

  print('bon')
n=int(eval(input()))

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

  print('hon')

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

  print('pon')

else:

  print('bon')
n = int(eval(input()))
digit = n % 10
if digit == 0 or digit == 1 or digit == 6 or digit == 8:
    print("pon")
elif digit == 2 or digit == 4 or digit == 5 or digit == 7 or digit == 9:
    print("hon")
elif digit == 3:
    print("bon")

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

-digit = n % 10 -if digit == 0 or digit == 1 or digit == 6 or digit == 8: +if n % 10 in [2, 4, 5, 7, 9]: +    print("hon") +elif n % 10 in [0, 1, 6, 8]: -elif digit == 2 or digit == 4 or digit == 5 or digit == 7 or digit == 9: -    print("hon") -elif digit == 3: +else: