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