N = eval(input())

if N[-1] in ['2','4','5','7','9']:

  print('hon')

elif N[-1] in ['0','1','6','8']:

  print('pon')

else:

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



print(((n in '24579')*'hon' + (n in '0168')*'pon' + (n in '3')*'bon'))
N = eval(input())
if N[-1] in ["2", "4", "5", "7", "9"]:
    print("hon")
elif N[-1] in ["0", "1", "6", "8"]:
    print("pon")
else:
    print("bon")

n = input()[-1]
print(((n in "24579") * "hon" + (n in "0168") * "pon" + (n in "3") * "bon"))

-N = eval(input()) -if N[-1] in ["2", "4", "5", "7", "9"]: -    print("hon") -elif N[-1] in ["0", "1", "6", "8"]: -    print("pon") -else: -    print("bon") +n = input()[-1] +print(((n in "24579") * "hon" + (n in "0168") * "pon" + (n in "3") * "bon"))