n = int(eval(input()))

a = n % 10

if a == 3:

  print('bon')

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

  print('pon')

else:

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

a = n % 10

if a == 2 or a == 4 or a == 5 or a == 7 or a == 9:

  print('hon')

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

  print('pon')

if a == 3:

  print('bon')

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

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

+if a == 2 or a == 4 or a == 5 or a == 7 or a == 9: +    print("hon") +if a == 0 or a == 1 or a == 6 or a == 8: +    print("pon") -elif a == 0 or a == 1 or a == 6 or a == 8: -    print("pon") -else: -    print("hon")