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