n = eval(input())



hon = [2,4,5,7,9]

pon = [0,1,6,8]

bon = [3]



if int(n[-1]) in hon:

    print("hon")

elif int(n[-1]) in pon:

    print("pon")

elif int(n[-1]) in bon:

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

hon = [2,4,5,7,9]

pon = [0,1,6,8]

bon = [3]



print(("hon" if n%10 in hon else "pon" if n%10 in pon else "bon"))
n = eval(input())
hon = [2, 4, 5, 7, 9]
pon = [0, 1, 6, 8]
bon = [3]
if int(n[-1]) in hon:
    print("hon")
elif int(n[-1]) in pon:
    print("pon")
elif int(n[-1]) in bon:
    print("bon")

n = int(eval(input()))
hon = [2, 4, 5, 7, 9]
pon = [0, 1, 6, 8]
bon = [3]
print(("hon" if n % 10 in hon else "pon" if n % 10 in pon else "bon"))

-n = eval(input()) +n = int(eval(input())) -if int(n[-1]) in hon: -    print("hon") -elif int(n[-1]) in pon: -    print("pon") -elif int(n[-1]) in bon: -    print("bon") +print(("hon" if n % 10 in hon else "pon" if n % 10 in pon else "bon"))