n = str(input("n:"))

N = n[-1]

if N == "3":
    print("bon")
elif N == "0" :
    print("pon")
elif N == "1" :
    print("pon")
elif N == "6":
    print("pon")
elif N == "8":
    print("pon")
else:
    print("hon")