N=input()

a = None

if(len(N) == 1):
    a = int(N)
elif(len(N) == 2):
    a = int(N[1])
else:
    a = int(N[3])

s = ""

if(a == 3):
    s = "bon"
elif(a == 0 or a ==1 or a==6 or a==8):
    s = "pon"
else:
    s="hon"

print(s)
