#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >> n;
  string m;
  m = std::to_string(n);
  if (m.at(m.size()-1) == "2" ||
      m.at(m.size()-1) == "4" ||
      m.at(m.size()-1) == "5" ||
      m.at(m.size()-1) == "7" ||
      m.at(m.size()-1) == "9") {
    cout << "hon" << endl;
  } else if (m.at(m.size()-1) == "0" ||
             m.at(m.size()-1) == "1" ||
             m.at(m.size()-1) == "6" ||
             m.at(m.size()-1) == "8") {
    cout << "pon" << endl;
  } else {
    cout << "bon" << endl;
  }
}