n = int(eval(input())) % 10

a = 'hon'

if n == 3:

    a = 'bon'

elif n in [0,1,6,8]:

    a = 'pon'

print(a)
n = int(eval(input())) % 10

a = 'hon'

if n == 3:

    a = 'bon'

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

    a = 'pon'

print(a)
n = int(eval(input())) % 10
a = "hon"
if n == 3:
    a = "bon"
elif n in [0, 1, 6, 8]:
    a = "pon"
print(a)

n = int(eval(input())) % 10
a = "hon"
if n == 3:
    a = "bon"
elif n == 0 or n == 1 or n == 6 or n == 8:
    a = "pon"
print(a)

-elif n in [0, 1, 6, 8]: +elif n == 0 or n == 1 or n == 6 or n == 8: