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