from sys import stdin
from sys import setrecursionlimit
setrecursionlimit(10 ** 7)

s = stdin.readline().rstrip()

if s in "24579":
    print("hon")
elif s in "0168":
    print("pon")
else:
    print("bon")