#include <stdio.h>
#include <string.h>



int main(){
	
	int i,j,N;
	
		scanf("%d",&N);
	i = N%10;
	if(i==2 || i==4 ||i==5 || i==7 ||i==9){
		printf("hon\n");
	}
	else if(i==3){
		printf("bon\n");
	}
	else printf("pon\n");
		
	return 0;
}
