#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
const int inf = 1 << 30;
const int maxn = 2e5 + 5;
inline void fastio() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  fastio();
  string s;
  cin >> s;
  int l = s.size();
  if (s[l - 1] == '3')
    cout << "bon" << endl;
  else if (s[l - 1] == '1' || s[l - 1] == '1' || s[l - 1] == '6' ||
           s[l - 1] == '8')
    cout << "pon" << endl;
  else
    cout << "hon" << endl;
  return 0;
}
