import sys
num = sys.stdin

hon_num_list = ["2", "4", "5", "7", "9"]
pon_num_list = ["0", "1", "6", "8"]
bon_num_list = ["3"]


if num[-1] in hon_num_list:
  print("hon")
elif num[-1] in pon_num_list:
  print("pon")
elif num[-1] in bon_num_list:
  print("bon")