#include <bits/stdc++.h>
using namespace std;
void solve() {}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t % 10 > 9) {
    t = t % 10;
  }
  if (t == 3)
    cout << "bon" << endl;
  else if (t == 2 || t == 4 || t == 5 || t == 7 || t == 9) {
    cout << "hon" << endl;
  } else {
    cout << "pon" << endl;
  }
  return 0;
}
