#include <bits/stdc++.h>
using namespace std;
long long myXOR(long long x, long long y) { return (x | y) & (~x | ~y); }
int main() {
  string s;
  cin >> s;
  if (s[s.size() - 1] == '2' || s[s.size() - 1] == '4' ||
      s[s.size() - 1] == '5' || s[s.size() - 1] == '7' ||
      s[s.size() - 1] == '9') {
    cout << "hon" << endl;
  } else if (s[s.size() - 1] == '0' || s[s.size() - 1] == '1' ||
             s[s.size() - 1] == '6' || s[s.size() - 1] == '8') {
    cout << "pon" << endl;
  } else if (s[s.size() - 1] == '3')
    cout << "bon" << endl;
}
