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