import 'dart:io';

void main(List<String> args) {
  final line = stdin.readLineSync();
  final intLine = int.parse(line);
  final first = intLine % 10;
  if (first == 3) {
    print('bon');
  } else if (first == 0 || first == 1 || first == 6 || first == 8) {
    print('pon');
  } else {
    print('hon');
  }
}
