a = len(str(N)) - 1
if str(N[a]) == 2 or str(N[a]) == 4 or str(N[a]) == 5 or str(N[a]) == 7 or str(N[a]) == 9:
  print("hon")
elif str(N[a]) == 0 or str(N[a]) == 1 or str(N[a]) == 6 or str(N[a]) == 8:
  print("pon")
elif str(N[a]) == 3:
  print("bon")