#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  n = n % 10;
  if (n == 3) cout << "bon";
  if (n == 0 || n == 1 || n == 6 || n == 8)
    cout << "pon";
  else
    cout << "hon";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long T = 1;
  while (T--) {
    solve();
  }
}
