#include <bits/stdc++.h>
using namespace std;
inline int read() {
  register int x = 0, f = 1;
  register char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') x = x * 10 + (ch ^ 48), ch = getchar();
  return x * f;
}
int main() {
  int n = read(), f1 = 0, f2 = 0, f3 = 0;
  while (n) {
    int y = n % 10;
    if (y == 0 || y == 1 || y == 6 || y == 8) f2 = 1;
    if (y == 2 || y == 4 || y == 5 || y == 7 || y == 9) f1 = 1;
    if (y == 3) f3 = 1;
    n /= 10;
  }
  if (f3)
    puts("bon");
  else if (f2)
    puts("pon");
  else
    puts("hon");
  return 0;
}
