N = int(eval(input()))

x = N % 10

#xはNを10で割ったあまり



if x == 2 or x == 4 or x == 5 or x == 7 or x == 9:

    k = 'hon'

elif x == 0 or x == 1 or x == 6 or x == 8:

    k = 'pon'

elif x == 3:

    k = 'bon'



print(k)

N = int(eval(input()))

x = N % 10

#xはNを10で割ったあまり



if x == 2 or x == 4 or x == 5 or x == 7 or x == 9:

    k = 'hon'

elif x == 0 or x == 1 or x == 6 or x == 8:

    k = 'pon'

else:

    k = 'bon'



print(k)

N = int(eval(input()))
x = N % 10
# xはNを10で割ったあまり
if x == 2 or x == 4 or x == 5 or x == 7 or x == 9:
    k = "hon"
elif x == 0 or x == 1 or x == 6 or x == 8:
    k = "pon"
elif x == 3:
    k = "bon"
print(k)

N = int(eval(input()))
x = N % 10
# xはNを10で割ったあまり
if x == 2 or x == 4 or x == 5 or x == 7 or x == 9:
    k = "hon"
elif x == 0 or x == 1 or x == 6 or x == 8:
    k = "pon"
else:
    k = "bon"
print(k)

-elif x == 3: +else: