#include <stdio.h>
int main(void){
  int N;
  int ichi:
  scanf("%d",&N);
  ichi = N % 10;
  if(ichi == 2,4,5,7,9){
    printf("hon\n");
  }
  else if(ichi == 0,1,6,8){
    printf("pon\n");
  }
  else{
    printf("bon\n");
  }
  return 0;
}