#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e9;
long long n, m, k;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  m = n % 10;
  if (m == 2 || m == 4 || m == 5 || m == 7 || m == 9) {
    cout << "hon"
         << "\n";
  } else if (m == 1) {
    cout << "bon"
         << "\n";
  } else {
    cout << "pon"
         << "\n";
  }
  return 0;
}
