#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pll = pair<ll, ll>;
using pii = pair<int, int>;
const int N = 2e5 + 5;
const ll INF = 1e18 + 1;
const int MOD = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  if (n % 10 == 2 || n % 10 == 4 || n % 10 == 5 || n % 10 == 7 || n % 10 == 9)
    cout << "hon"
         << "\n";
  else if (n % 10 == 3)
    cout << "bon"
         << "\n";
  else
    cout << "pon"
         << "\n";
  return 0;
}
