n = eval(input())

if int(n[-1]) in {2, 4, 5, 7, 9}:

    print('hon')

elif int(n[-1]) in {0, 1, 6, 8}:

    print('pon')

else:

    print('bon')
n = eval(input())

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

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

-if int(n[-1]) in {2, 4, 5, 7, 9}: -    print("hon") -elif int(n[-1]) in {0, 1, 6, 8}: -    print("pon") -else: -    print("bon") +print( +    ( +        "hon" +        if int(n[-1]) in {2, 4, 5, 7, 9} +        else "pon" +        if int(n[-1]) in {0, 1, 6, 8} +        else "bon" +    ) +)