N=input()
s=len(N)

print(N[s-1])


if N[s-1] is "0" or N[s-1] is "1" or N[s-1] is "6" or N[s-1] is "8":
    print("pon")

elif N[s-1] is "3":
    print("bon")

elif N[s-1] is "2" or N[s-1] is "4" or N[s-1] is "5" or N[s-1] is "7" or N[s-1] is "9":
    print("hon")
