N = int(eval(input()))

n = N % 10



if n == 3:

    print('bon')



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

    print('pon')



else:

    print('hon')
N = int(eval(input()))

ch = ['pon', 'pon', 'hon', 'bon', 'hon', 'hon', 'pon', 'hon', 'pon', 'hon']

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

N = int(eval(input()))
ch = ["pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"]
print((ch[N % 10]))

-n = N % 10 -if n == 3: -    print("bon") -elif n == 0 or n == 1 or n == 6 or n == 8: -    print("pon") -else: -    print("hon") +ch = ["pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"] +print((ch[N % 10]))