#include<stdio.h>
#include<string.h>
int main(void){
	char N[4];
	int x;
	scanf("%s",&N);
	x=strlen(N);
	if(N[x-1]=='3'){
		printf("bon\n");
	}
	else if((N[x-1]=='0')||(N[x-1]=='1')||(N[x-1]=='6')||(N[x-1]=='8')){
		printf("pon\n");
	}
	else{
		printf("hon\n");
	}
	return 0;
}