#include <bits/stdc++.h>
using namespace std;
const long long int INF = 1e18;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int i = 0, j = 0;
  long long int t;
  t = 1;
  long long int cno = 0;
  while (t--) {
    int n;
    cin >> n;
    n = n % 10;
    if (n == 2 || n == 4 || n == 5 || n == 5 || n == 9)
      cout << "hon";
    else if (n == 3)
      cout << "bon";
    else
      cout << "pon";
    cout << '\n';
  }
}
