input_line = list(input())
place_of_one = int(input_line[-1])
print(place_of_one)
if place_of_one in [2, 4, 5, 7, 9]:
    print('hon')
elif place_of_one in [0, 1, 6, 8]:
    print('pon')
elif place_of_one in [3]:
    print('bon')