import sys
args = sys.argv
num = args[-1]
num1 = num[-1]
print(num1)

if num1 == '3':
    print('bon')
elif num1 == '0' or num1 == '1' or num1 == '6' or num1 == '8':
    print('pon')
else:
    print('hon')