#include<stdio.h>

int main(void){
 	
  char line[4];
  
  fgets(line,sizeof(line),stdin);
  int n = sizeof(line);
  
  if(line[n-1] == '0' || line[n-1] == '1' || line[n-1] == '6' || line[n-1] == '8'){
   	printf("pon\n"); 
  }else if(line[n-1] == '3'){
   	printf("bon\n"); 
  }else{
   	printf("hon\n"); 
  }
  return 0;
}
