n = input("enter a number between 0 and 999: ")
digit_in_first_place = int(n[len(n) - 1])
hon_possible = (2,4,5,7,9)
pon_possible = (0,1,6,8)

if digit_in_first_palce in hon_possible:
  print("hon")
elif digit_in_first_place in pon_possible:
  print("pon")
else:
  print("bon)
 
