#include <bits/stdc++.h>
using namespace std;
long long int power(long long int x, long long int y,
                    long long int md = 1e9 + 7) {
  long long int res = 1;
  x %= md;
  while (y > 0) {
    if (y & 1) res = (res * x) % md;
    x *= x;
    if (x >= md) x %= md;
    y >>= 1;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  int last = t % 10;
  if (last == 2 || last == 4 || last == 5 || last == 7 || last == 9)
    cout << "hon";
  else if (last == 0 || last == 1 || last == 6 || last == 8)
    cout << "pon";
  else
    cout << "bon";
}
