import sys



n = int(eval(input()))

 

num = n % 10

 

if num == 3:

  print('bon')

elif num==0 or num==1 or num==6 or num==8:

  print('pon')

else:

  print('hon')

n = int(eval(input()))

 

num = n % 10

 

if num == 3:

  print('bon')

elif num==0 or num==1 or num==6 or num==8:

  print('pon')

else:

  print('hon')

import sys

n = int(eval(input()))
num = n % 10
if num == 3:
    print("bon")
elif num == 0 or num == 1 or num == 6 or num == 8:
    print("pon")
else:
    print("hon")

n = int(eval(input()))
num = n % 10
if num == 3:
    print("bon")
elif num == 0 or num == 1 or num == 6 or num == 8:
    print("pon")
else:
    print("hon")

-import sys -