n=int(input()[-1])

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

    print('hon')

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

    print('pon')

else:

    print('bon')
n=int(input()[-1])

if n in [2,4,5,7,9]:

	print('hon')

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

	print('pon')

else:

	print('bon')
n = int(input()[-1])
if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
    print("hon")
elif n == 0 or n == 1 or n == 6 or n == 8:
    print("pon")
else:
    print("bon")

n = int(input()[-1])
if n in [2, 4, 5, 7, 9]:
    print("hon")
elif n in [0, 1, 6, 8]:
    print("pon")
else:
    print("bon")

-if n == 2 or n == 4 or n == 5 or n == 7 or n == 9: +if n in [2, 4, 5, 7, 9]: -elif n == 0 or n == 1 or n == 6 or n == 8: +elif n in [0, 1, 6, 8]: