#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long tt = 1;
  while (tt--) {
    string s;
    cin >> s;
    long long n = s.size();
    n = s[n - 1] - '0';
    if (n == 2 or n == 4 or n == 5 or n == 7 or n == 9)
      cout << "hon";
    else if (n == 3)
      cout << "bon";
    else
      cout << "pon";
  }
  return 0;
}
