#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string x;
  cin >> x;
  long long int n;
  n = x.length();
  long long int p;
  p = x[n - '1'];
  if (p == 2 || p == 4 || p == 5 || p == 7 || p == 9) {
    cout << "hon"
         << "\n";
  } else if (p == 0 || p == 1 || p == 6 || p == 8) {
    cout << "pon"
         << "\n";
  } else {
    cout << "bon"
         << "\n";
  }
  return 0;
}
