import numpy as np



n = np.array(list(input().rstrip()))

ans = "bon" if n[-1] == "3" else "pon" if n[-1] in ["0", "1", "6", "8"] else "hon"

print(ans)
import sys

input = sys.stdin.readline



n = input().rstrip()



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

    print("bon")

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

    print("pon")

else:

    print("hon")
import numpy as np

n = np.array(list(input().rstrip()))
ans = "bon" if n[-1] == "3" else "pon" if n[-1] in ["0", "1", "6", "8"] else "hon"
print(ans)

import sys

input = sys.stdin.readline
n = input().rstrip()
if n[-1] == "3":
    print("bon")
elif n[-1] in ["0", "1", "6", "8"]:
    print("pon")
else:
    print("hon")

-import numpy as np +import sys -n = np.array(list(input().rstrip())) -ans = "bon" if n[-1] == "3" else "pon" if n[-1] in ["0", "1", "6", "8"] else "hon" -print(ans) +input = sys.stdin.readline +n = input().rstrip() +if n[-1] == "3": +    print("bon") +elif n[-1] in ["0", "1", "6", "8"]: +    print("pon") +else: +    print("hon")