#include<stdio.h>
int main(){
	int x;
  	
  	scanf("%d",&x);
  	x%=100;
  	x%=10;
  	
  	switch(x){
      case 2 4 5 7 9:
        printf("hon\n");
        break;
      case 0 1 6 8:
        printf("pon\n");
        break;
      default:
        printf("bon\n");
    }
  return 0;
}