s = int(input())
if s >= 10:
  n = str(s)
  if n[-1]=="3":
    print("bon")
  else:
    if n[-1]==("0" or "1" or "6" or "8"):
      print("pon")
    else:
      print("hon")
else:
  if s==3:
    print("bon")
  else:
    if s== 1 or 6 or 8:
      print("pon")
    else:
      print("hon")