#include <bits/stdc++.h>
int main(void) {
  int f, g, n;
  scanf("%d", &n);
  f = n % 100;
  g = f % 10;
  if (g = 3) {
    printf("bon");
  } else if (g = 0) {
    printf("pon");
  } else if (g = 1) {
    printf("pon");
  } else if (g = 6) {
    printf("pon");
  } else if (g = 8) {
    printf("pon");
  } else {
    printf("hon");
  }
  return 0;
}
