#include <bits/stdc++.h>
using namespace std;
const long long inf = 1020304050607080910;
const int mod = 1000000007;
template <class T>
bool chmin(T& x, T y) {
  if (x > y) {
    x = y;
    return true;
  }
  return false;
}
template <class T>
bool chmax(T& x, T y) {
  if (x < y) {
    x = y;
    return true;
  }
  return false;
}
long long gcd(long long x, long long y) {
  if (x > y) swap(x, y);
  while (x != 0) {
    y %= x;
    swap(x, y);
  }
  return y;
}
long long mpow(long long x, long long r) {
  if (r == 0) return 1;
  if (r % 2 == 1) {
    return x * mpow(x, r - 1) % mod;
  } else {
    long long aa = mpow(x, r / 2);
    return aa * aa % mod;
  }
}
int main() {
  int N;
  cin >> N;
  int p = N % 10;
  if (p == 3) {
    cout << "bon" << endl;
  } else if (p == 0 || p == 1 || p == 3 || p == 6) {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
  return 0;
}
