#include <bits/stdc++.h>
using namespace std;
const unsigned long long maxn = 3005, mod = 998244353;
unsigned long long jia[maxn], cheng[maxn], a, b, n;
inline unsigned long long read() {
  unsigned long long x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  return x * f;
}
inline void write(unsigned long long a) {
  if (a < 0) {
    putchar('-');
    putchar('1');
  } else {
    if (a >= 10) write(a / 10);
    putchar(a % 10 + '0');
  }
}
unsigned long long quickmi(unsigned long long a, unsigned long long b) {
  unsigned long long kotae = 1;
  while (b) {
    if (b & 1) kotae = kotae * a % mod;
    a = a * a % mod;
    b >>= 1;
  }
  return kotae;
}
signed main() {
  char ch = getchar();
  unsigned long long a = ch - '0';
  if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9)
    puts("hon");
  else if (a == 3)
    puts("bon");
  else
    puts("pon");
  return 0;
}
