#include <bits/stdc++.h>
using namespace std;
inline int gi() {
  int f = 1, x = 0;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
  return f * x;
}
inline long long gl() {
  long long f = 1, x = 0;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
  return f * x;
}
const int INF = 0x3f3f3f3f, N = 300003, M = N << 1;
int n, m;
int a[N], b[N];
char s[N];
int main() {
  cin >> n;
  m = n % 10;
  if (m == 2 || m == 4 || m == 5 || m == 7 || m == 9)
    puts("hon");
  else if (m == 0 || m == 1 || m == 6 || m == 8)
    puts("pon");
  else
    puts("bon");
  return 0;
}
