#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int MOD = (int)1e9 + 7;
signed main() {
  int N;
  cin >> N;
  int d = N % 10;
  if (d == 3) {
    cout << "bon" << endl;
  } else if (d == 0 || d == 1 || d == 6 || d == 8) {
    cout << "pon" << endl;
  } else {
    cout << "hoon" << endl;
  }
}
