#include <bits/stdc++.h>
const long long iinf = 1e18;
const int inf = 1e9;
using namespace std;
void solve() {
  string s;
  cin >> s;
  char c = s[s.size() - 1];
  if (c == '0' || c == '1' || c == '6' || '8')
    cout << "pon";
  else if (c == '3')
    cout << "bon";
  else
    cout << "hon";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  int i = 1;
  solve();
  return 0;
}
