#include <stdio.h>

#define LENGTH 256

int main() {
  char input[LENGTH];
  int n;
  fgets(input, LENGTH,stdin);
  sscanf(input, "%d", &n);
  int rem = n % 10;
  if(rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9) {
    printf("hon \n");
  } else if(rem == 0 || rem == 1 || rem == 6 || rem == 8) {
    printf("pon \n");
  } else if(rem == 3) {
    printf("bon \n");
  }
}
