#include <bits/stdc++.h>
const int inf = (1 << 30);
const int mod = 1000000007;
using ll = long long;
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 3) cout << "bon" << endl;
  if (n == 0 or n == 1 or n == 6 or n == 8)
    cout << "pon" << endl;
  else
    cout << "hon" << endl;
}
