n = eval(input())



if n[-1] == "3":

    print("bon")

elif n[-1] == "0":

    print("pon")

elif n[-1] == "1":

    print("pon")

elif n[-1] == "6":

    print("pon")

elif n[-1] == "8":

    print("pon")

else:

    print("hon")
n = int(eval(input()))%10



if n == 3:

    ans = "bon"

elif n in [0, 1, 6, 8]:

    ans = "pon"

else:

    ans = "hon"



print(ans)
n = eval(input())
if n[-1] == "3":
    print("bon")
elif n[-1] == "0":
    print("pon")
elif n[-1] == "1":
    print("pon")
elif n[-1] == "6":
    print("pon")
elif n[-1] == "8":
    print("pon")
else:
    print("hon")

n = int(eval(input())) % 10
if n == 3:
    ans = "bon"
elif n in [0, 1, 6, 8]:
    ans = "pon"
else:
    ans = "hon"
print(ans)

-n = eval(input()) -if n[-1] == "3": -    print("bon") -elif n[-1] == "0": -    print("pon") -elif n[-1] == "1": -    print("pon") -elif n[-1] == "6": -    print("pon") -elif n[-1] == "8": -    print("pon") +n = int(eval(input())) % 10 +if n == 3: +    ans = "bon" +elif n in [0, 1, 6, 8]: +    ans = "pon" -    print("hon") +    ans = "hon" +print(ans)