n = list(input())

for i,number in enumerate(n):
    print(i,number)
    if i == len(n) - 1:
        if number == "3":
            print('bon')
        elif number in list("0168"):
            print('pon')
        else:
            print('hon')
