
val = input()
if val <= 999:
  str_val = str(val)
  val_one = str_val[-1]
  if val_one in {'2','4','5','9','7'}:
    print('hon')
  elif val_one in {'0','1','6','8'}:
    print('pon')
  elif val_one == '3':
    print('bon')