#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> m;
  while (n > 0) {
    int k = n % 10;
    m.push_back(k);
    n /= 10;
  }
  for (int i = 0; i < m.size(); i++) {
    if (m[i] == 3) {
      cout << "bon" << endl;
      break;
    } else if (m[i] == 0 || m[i] == 1 || m[i] == 6 || m[i] == 8) {
      cout << "pon" << endl;
      break;
    } else {
      cout << "hon" << endl;
      break;
    }
  }
}
