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