#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7, N = 4e5 + 10;
void solve() {
  long long n;
  cin >> n;
  long long rem = n % 10;
  if (rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9)
    cout << "hon\n";
  else if (rem == 0 || rem == 1 || rem == 6 || rem == 8)
    cout << "pon\n";
  else
    cout << "bon\n";
  return;
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long test = 1;
  while (test--) {
    solve();
  }
}
