#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int k = s.length();
  if (s[k - 1] == '2' || s[k - 1] == '4' || s[k - 1] == '5' ||
      s[k - 1] == '7' || s[k - 1] == '9') {
    cout << "hon"
         << "\n";
  } else if (s[k - 1] == '0' || s[k - 1] == '1' || s[k - 1] == '6' ||
             s[k - 1] == '8') {
    cout << "pon"
         << "\n";
  } else if (s[k - 1] == '3') {
    cout << "bon"
         << "\n";
  }
  return 0;
}
