#include <bits/stdc++.h>
using namespace std;
void tokenize(string str, const char delim, vector<string>& res) {
  stringstream p(str);
  string token;
  while (getline(p, token, delim)) {
    res.push_back(token);
  }
  return;
}
long long num;
void test_case() {
  cin >> num;
  string str1 = "24579";
  if (str1.find(num % 10 + '0') != string::npos) cout << "hon\n";
  if (num % 10 == 3)
    cout << "bon";
  else
    cout << "pon";
  return;
}
int main() {
  ios_base ::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  ;
  int tt;
  tt = 1;
  while (tt--) {
    test_case();
  }
  return 0;
}
