N = input()
l = len(N)


a = N[l-1]
print(a)
if (a == '2' or a == '4' or a == '5' or a == '7' or a == '9'):
    print('hon')
elif (a == '0' or a == '1' or a == '6' or a == '8'):
    print('pon')
else:
    print('bon')
