#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int N = 200005;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  string s;
  cin >> s;
  if (s[s.size() - 1] == '2' || s[s.size() - 1] == '5' ||
      s[s.size() - 1] == '7' || s[s.size() - 1] == '4' ||
      s[s.size() - 1] == '9')
    cout << "hon";
  else if (s[s.size() - 1] == '0' || s[s.size() - 1] == '1' ||
           s[s.size() - 1] == '6')
    cout << "pon";
  else
    cout << "bon";
  return 0;
}
