pen = (input()[-1])

print(pen)

if pen == 2 or pen == 4 or pen == 5 or pen == 7 or pen == 9:
    print('hon')
elif pen == 0 or pen == 1 or pen == 6 or pen == 8:
    print('pon')
elif pen == 3:
    print('bon')
