N = int(input())
if N >= 100:
  if N[2] == 2 or N[2] == 4 or N[2] == 5 or N[2] == 7 or N[2] == 9:
    print("pon")
  elif N[2] == 0 or N[2] == 1 or N[2] == 6 or N[2] == 8:
    print("hon")
  else:
    print("bon")