N = int(input())

def mod(x):
  a = x%10
  return a

if mod(N) == 2 or mod(N) == 4 or mod(N) ==5  or mod(N) == 6:
  print("hon")
elif mod(N)==0 or mod(N)==1 or mod(N)==6 or mod(N)==8:
  print("pon")
elif mod(N)==3:
  print("bon")



