#include <bits/stdc++.h>
using namespace std;
long long sum(long long a[], long long n, long long s) {
  for (long long i = 0; i < n; i++) s += a[i];
  return s;
}
long long power(long long x, long long y, long long p) {
  long long res = 1;
  x = x % p;
  if (x == 0) return 0;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
void solve() {
  long long n, x;
  cin >> n;
  x = n % 3;
  if (x == 3) {
    cout << "bon";
  } else if (x == 0 or x == 1 or x == 8 or x == 6)
    cout << "pon";
  else
    cout << "hon";
  return;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  long long t, T;
  T = 1;
  for (t = 1; t <= T; t++) {
    solve();
  }
  return 0;
}
