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