num_val = str(input())

if num_val[len(num_val) - 1] in ['2', '4', '5', '7', '9']:
  print('hon')
  elif num_val[len(num_val) - 1] in ['0', '1', '6', '8']:
    print('pon')
    elif num_val[len(num_val) - 1] in ['3']:
      print('bon')