#include <bits/stdc++.h>
using namespace std;
void printv(vector<long long> v) {
  for (long long i : v) cout << i << endl;
}
int main() {
  int n;
  cin >> n;
  int ch = n % 10;
  string ans;
  if (ch == 3)
    ans = "bon";
  else if ((ch == 0) || (ch == 1) || (ch == 6) || (ch == 8))
    ans = "pon";
  else
    ans = "hon";
  cout << ans << endl;
}
