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