#include <bits/stdc++.h>
int main() {
  int i = 1005, n, j;
  char a[i];
  for (j = 0; j <= i; j++) {
    scanf("%c", a[i]);
  }
  if (a[i] / 1000 == 2 || a[i] / 1000 == 4 || a[i] / 1000 == 5 ||
      a[i] / 1000 == 7 || a[i] / 1000 == 9) {
    printf("hon");
  } else if (a[i] / 1000 == 0 || a[i] / 1000 == 1 || a[i] / 1000 == 6 ||
             a[i] / 1000 == 8) {
    printf("pon");
  } else
    printf("bon");
  return 0;
}
