input = int(input())

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