#include <bits/stdc++.h>
using namespace std;
const long double pi = 3.1415926535897932384626433;
const int mod = 1000000007;
const long long inf = 3e18;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  long long k = n % 10;
  if (k == 0 or k == 1 or k == 6 or k == 8) {
    cout << "pon";
    return 0;
  }
  if (k == 3) {
    cout << "bon";
    return 0;
  }
  cout << "hon";
  return 0;
}
