N = eval(input())

if N[-1] == '3':

    print('bon')

elif N[-1] == '0' or N[-1] == '1' or N[-1] == '6' or N[-1] == '8':

    print('pon')

else:

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

if n in [3]:

    print('bon')

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

    print('pon')

else:

    print('hon')

N = eval(input())
if N[-1] == "3":
    print("bon")
elif N[-1] == "0" or N[-1] == "1" or N[-1] == "6" or N[-1] == "8":
    print("pon")
else:
    print("hon")

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

-N = eval(input()) -if N[-1] == "3": +n = int(input()[-1]) +if n in [3]: -elif N[-1] == "0" or N[-1] == "1" or N[-1] == "6" or N[-1] == "8": +elif n in [0, 1, 6, 8]: