n = int(eval(input()))

a = n%10



if a == 3:

    print("bon")

elif a == 0:

    print("pon")

elif a == 1:

    print("pon")

elif a == 6:

    print("pon")

elif a == 8:

    print("pon")

else:

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

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

pon = [0,1,6,8]



a = n % 10

if a in hon:

    print("hon")

elif a in pon:

    print("pon")

else:

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

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

+hon = [2, 4, 5, 7, 9] +pon = [0, 1, 6, 8] -if a == 3: -    print("bon") -elif a == 0: -    print("pon") -elif a == 1: -    print("pon") -elif a == 6: -    print("pon") -elif a == 8: +if a in hon: +    print("hon") +elif a in pon: -    print("hon") +    print("bon")