N=int(eval(input()))

ans=int(N%10)

if ans==3:

  print("bon")

elif ans==0:

  print("pon")

elif ans==1:

  print("pon")

elif ans==6:

  print("pon")

elif ans==8:

  print("pon")

else:

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

if int(N%10)==3:

    print("bon")

elif int(N%10)<=1:

    print("pon")

elif int(N%10)==6 or int(N%10)==8:

    print("pon")

else:

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

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

-ans = int(N % 10) -if ans == 3: +if int(N % 10) == 3: -elif ans == 0: +elif int(N % 10) <= 1: -elif ans == 1: -    print("pon") -elif ans == 6: -    print("pon") -elif ans == 8: +elif int(N % 10) == 6 or int(N % 10) == 8: