#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
  vector<int> A, B, C;
  A = {2, 4, 5, 7, 9};
  B = {0, 1, 6, 8};
  C = {3};
  int A, B;
  cin >> X;
  Y = X % 10;
  rep(i, 5) {
    if(A.at(i) == Y) {
      cout << "hon" << endl;
    }
  }
  rep(i, 4) {
    if(B.at(i) == Y) {
      cout << "pon" << endl;
    }
  }
  if(Y == 3) {
    cout << "bon" << endl;
  }
}