#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

int main(void) {
  int n;
  scanf("%d", &n);
  int a = n % 10;
  if (a == 3) {
    printf("bon\n");
  } else if (!a || a == 1 || a == 6 || a == 8) {
    printf("pon\n");
  } else {
    printf("hon\n");
  }

  return 0;
}
