import 'dart:io';

extension OnesPlace on int {
  int get onesPlace => this % 10;
}

void main(List<String> arguments) {
  final n = int.parse(stdin.readLineSync());
  print(getCounterBy(n));
}

String getCounterBy(int rawInput) {
  switch (rawInput.onesPlace) {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      return 'hon';
    case 0:
    case 1:
    case 6:
    case 8:
      return 'pon';
    default:
      return 'bon';
  }
}
