N = int(eval(input()))

onesPlace = N % 10

output = ''



if onesPlace == 3:

    output = 'bon'

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

    output = 'pon'

else:

    output = 'hon'



print(output)
N = int(eval(input()))

onesPlace = N % 10



firstChars = 'pphbhhphph'



print((firstChars[onesPlace] + 'on'))

N = int(eval(input()))
onesPlace = N % 10
output = ""
if onesPlace == 3:
    output = "bon"
elif onesPlace == 0 or onesPlace == 1 or onesPlace == 6 or onesPlace == 8:
    output = "pon"
else:
    output = "hon"
print(output)

N = int(eval(input()))
onesPlace = N % 10
firstChars = "pphbhhphph"
print((firstChars[onesPlace] + "on"))

-output = "" -if onesPlace == 3: -    output = "bon" -elif onesPlace == 0 or onesPlace == 1 or onesPlace == 6 or onesPlace == 8: -    output = "pon" -else: -    output = "hon" -print(output) +firstChars = "pphbhhphph" +print((firstChars[onesPlace] + "on"))