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

#define lop(i, n) for(i=0; i<n; i++)

int main()
{
	char n[3];
	scanf("%s", n);
	
	int s=strlen(n)-1;
	if(n[s]=='2' || n[s]=='4' || n[s]=='5' || n[s]=='7' || n[s]=='9' ){ printf("hon"); }
	else if(n[s]=='0' || n[s]=='1' || n[s]=='6' || n[s]=='8'){ printf("pon"); }
	else{ printf("bon"); }
	
	return 0;
}
