#include <bits/stdc++.h>
using namespace std;
int main() {
  string n;
  cin >> n;
  if (n[(n.size()) - 1] == 3) {
    cout << "bon" << endl;
  } else if (n[(n.size()) - 1] == 0) {
    cout << "pon" << endl;
  } else if (n[(n.size()) - 1] == 1) {
    cout << "pon" << endl;
  } else if (n[(n.size()) - 1] == 6) {
    cout << "pon" << endl;
  } else if (n[(n.size()) - 1] == 8) {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
}
