import sys
input = sys.stdin.readline
ins = lambda: input().rstrip()
ini = lambda: int(input().rstrip())
inm = lambda: map(int, input().rstrip().split())
inl = lambda: list(map(int, input().split()))
out = lambda x, s='\n': print(s.join(map(str, x)))

n = ins()
if n[0] == "3":
    print("bon")
elif int(n[0]) in [0, 1, 6, 8]:
    print("Pon")
else:
    print("hon")