#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%i", &n);
  int rem, div, t;
  div = n;
  while (n / 10 != 0) {
    n = n / 10;
  }
  t = n;
  if (t == 2 || t == 4 || t == 5 || t == 7 || t == 9) {
    printf("hon\n");
  } else if (t == 3) {
    printf("bon\n");
  } else {
    printf("pon\n");
  }
  return 0;
}
