#include <bits/stdc++.h>
using namespace std;
int n;
char s[10];
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch > '9' || ch < '0') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x *= 10;
    x += (ch - '0');
    ch = getchar();
  }
  return x * f;
}
inline void write(int x) {
  if (x < 0) putchar('-'), x = -x;
  if (x > 9) write(x / 10);
  putchar(x % 10 + '0');
}
signed main() {
  scanf("%s", s);
  if (s[0] == '2' || s[0] == '4' || s[0] == '5' || s[0] == '7' || s[0] == '9')
    puts("hon");
  if (s[0] == '0' || s[0] == '1' || s[0] == '6' || s[0] == '8') puts("pon");
  if (s[0] == '3') puts("bon");
  return 0;
}
