#include <stdio.h>

int main(void){
	int n, first;
    
    scanf("%d",&n);
    first = n % 10;
    
    switch(first){
    	case 0:
    	case 1:
    	case 6:
    	case 8:
    		printf("pon\n");
    		break;
    		
    	case 3:
    		printf("bon\n");
    		break;
    	
    	default:
    		printf("hon\n");
    		break;
    }

    return 0;
}