hon = ['2', '4', '5', '7', '9']
pon = ['0', '1', '6', '8']
bon = ['3']

honc = 0
ponc = 0
bonc = 0

n = list(input())
leng = len(n) - 1


for i in range(0, len(hon) - 1):
    if n[leng] == hon[i]:
        honc = 1
for i in range(0, len(pon) - 1):
    if n[leng] == pon[i]:
        ponc = 1

if n[leng] == '3':
    bonc = 1

if bonc == 1:
    print("bon")
elif honc == 1:
    print("hon")
elif ponc == 1:
    print("pon")

