#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(int argc, char const *argv[]) {
  int in;
  cin >> in;
  int amari = in % 10;
  switch (amari) {
    case 3:
      cout << "boon" << endl;
      break;
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      cout << "hon" << endl;
      break;
    default:
      cout << "pon" << endl;
  }
  return 0;
}
