#include <bits/stdc++.h>
using namespace std;
const int N = 2;
const long long MOD = 1e9 + 7;
void Solve() {
  long long n;
  cin >> n;
  long long dig = n % 10;
  if (dig == 2 || dig == 5 || dig == 7 || dig == 9 || dig == 4)
    cout << "hon"
         << "\n";
  if (dig == 0 || dig == 1 || dig == 6 || dig == 8)
    cout << "pon"
         << "\n";
  if (dig == 3)
    cout << "bon"
         << "\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(nullptr);
  ;
  int T = 1;
  while (T--) {
    Solve();
  }
  return 0;
}
