#整数の入力
N= input()
N_list = list(N)

print(N_list[len(N_list)-1])

if(N_list[len(N_list)-1] == "2" or "4" or "5" or "7"or "9"):
  print("hon")
elif(N_list[len(N_list)-1] == "0" or "1" or "6" or "8"):
  print("pon")
else:
  print("bon")