a = input()
b = list(a)

c = sorted(b, reverse = True)

if c[0] == '1':
  print("pon")
elif c[0] == '2':
  print("hon")
elif c[0] == '3':
  print("bon")
elif c[0] == '4':
  print("hon")
elif c[0] == '5':
  print("hon")
elif c[0] == '6':
  print("pon")
elif c[0] == '7':
  print("hon")
elif c[0] == '8':
  print("pon")
elif c[0] == '9':
  print("hon")
elif c[0] == '0':
  print("pon")