#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ii = pair<int, int>;
const int MAX{200010};
const ll MOD{1000000007}, oo{1LL << 62};
ll solve(int N, const vector<ll>& xs) { return 0; }
int main() {
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int d = N % 10;
  if (d == 3)
    cout << "bon\n";
  else if (d == 0 or d == 1 or d == 6)
    cout << "pon\n";
  else
    cout << "hon\n";
  return 0;
}
