#include <bits/stdc++.h>
using namespace std;
const int mxn = 1e5 + 5;
long long int n;
int solve() {
  cin >> n;
  int k = n % 10;
  if (n == 3) {
    cout << "bon";
    return 0;
  } else if (n == 0 || n == 1 || n == 6 || n == 8) {
    cout << "pon";
    return 0;
  } else {
    cout << "hon";
    return 0;
  }
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  ;
  long long int testcase;
  testcase = 1;
  while (testcase--) {
    solve();
  }
}
