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



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

    print('hon')



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

    print('pon')



elif digit_1 == 3:

    print("bon")

N = int(input()[-1])

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

  print('hon')

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

  print('pon')

elif N in [3]:

  print('bon')

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

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

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