n = input()
slist = list(n)
print(slist)

number = int(slist[len(slist) - 1])
print(number)

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