a=input()
s=len(a)

print(a[s-1])


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

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

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