N=int(eval(input()))

hon=[2,4,5,7,9]

pon=[0,1,6,8]

n=N%10

if n in hon:

  print("hon")

elif n in pon:

  print("pon")

else:

  print("bon")

N=eval(input())

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

  print("hon")

elif int(N[-1]) in (0,1,6,8):

  print("pon")

else:

  print("bon")

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

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

-N = int(eval(input())) -hon = [2, 4, 5, 7, 9] -pon = [0, 1, 6, 8] -n = N % 10 -if n in hon: +N = eval(input()) +if int(N[-1]) in (2, 4, 5, 7, 9): -elif n in pon: +elif int(N[-1]) in (0, 1, 6, 8):