#include <stdio.h>

int main(int argc, char const *argv[])
{
	char s[4];
	scanf("%s",s);
	int i;
	for(i=0;i<4;i++) {
		if (s[i+1]=='\0') {
			break;
		}
	}
	if (s[i]=='2' || s[i]=='4' ||s[i]=='5' ||s[i]=='7' ||s[i]=='9') {
		printf("hon\n");
	}else if(s[i]=='0' ||s[i]=='1' ||s[i]=='6' ||s[i]=='8') {
		printf("pon\n");
	}else{
		printf("bon\n");
	}

	return 0;
}