#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
  ll n;
  cin >> n;
  n %= 10;
  if (n == 0 || 1 || 6 || 8) {
    cout << "pon" << endl;
  } else if (n == 3) {
    cout << "bon" << endl;
  } else {
    cout << "hon" << endl;
  }
  return 0;
}
