N=int(eval(input()))

if N%10==2 or N%10==4 or N%10==5 or N%10==7 or N%10==9 :

    print("hon")

elif N%10==0 or N%10==1 or N%10==6 or N%10==8 :

    print("pon")

else:

    print("bon")
n=int(eval(input()))

if n%10==3:

    print("bon")

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

    print("pon")

else:

    print("hon")
N = int(eval(input()))
if N % 10 == 2 or N % 10 == 4 or N % 10 == 5 or N % 10 == 7 or N % 10 == 9:
    print("hon")
elif N % 10 == 0 or N % 10 == 1 or N % 10 == 6 or N % 10 == 8:
    print("pon")
else:
    print("bon")

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

-N = int(eval(input())) -if N % 10 == 2 or N % 10 == 4 or N % 10 == 5 or N % 10 == 7 or N % 10 == 9: -    print("hon") -elif N % 10 == 0 or N % 10 == 1 or N % 10 == 6 or N % 10 == 8: +n = int(eval(input())) +if n % 10 == 3: +    print("bon") +elif n % 10 == 0 or n % 10 == 1 or n % 10 == 6 or n % 10 == 8: -    print("bon") +    print("hon")