n = int(input())
a = n%10
if a == 0:
    print("pon")
elif a == 1:
    print("pon!")
elif a == 2:
    print("hon")
elif a == 3:
    print("bon")
elif a == 4:
    print("hon")
elif a == 5:
    print("hon")
elif a == 6:
    print("pon")
elif a == 7:
    print("hon")
elif a == 8:
    print("pon")
elif a == 9:
    print("hon")