#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int k;
  int m;
  int c;
  cin >> N;
  k = N / 100;
  m = (N - 100 * k) / 10;
  c = (N - 100 * k - 10 * m);
  if (c == 2) {
    cout << "hon" << endl;
  }
  if (c == 4) {
    cout << "hon" << endl;
  }
  if (c == 5) {
    cout << "hon" << endl;
  }
  if (c == 7) {
    cout << "hon" << endl;
  }
  if (c == 9) {
    cout << "hon" << endl;
  }
  if (c == 0) {
    cout << "pon" << endl;
  }
  if (c == 1) {
    cout << "pon" << endl;
  }
  if (c == 6) {
    cout << "pon" << endl;
  }
  if (c == 8) {
    cout << "pon" << endl;
  } else {
    cout << "bon" << endl;
  }
}
