var line = stdin.readLineSync(
    encoding: Encoding.getByName('utf-8'),
  );
  var intLine = int.parse(line);
  var first = intLine % 10;
  if (first == 3) {
    print('bon');
  } else if (first == 0 || first == 1 || first == 6 || first == 8) {
    print('pon');
  } else {
    print('hon');
  }