#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t != 0) {
    int r = t % 10;
    if (r == 2 || r == 4 || r == 7 || r == 9) {
      cout << "hon" << endl;
      break;
    } else if (r == 0 || r == 1 || r == 6 || r == 8) {
      cout << "pon" << endl;
      break;
    } else {
      cout << "bon" << endl;
      break;
    }
    t = t / 10;
  }
}
