N = int(input())
length = len(str(N))
result = 0
hon = [2,4,5,7,9]
pon = [0,1,6,8]
bon = 3


for _ in range(length-1):
    result = N % 10
if result in hon:
    print("hon")
elif result in pon:
    print("pon")
else:
    print("bon")