#include<stdio.h>
int main(void)
{
	int n,r;
	scanf("%d",&n);
	r=n%10;
	if(r==3){
		printf("bon\n");
	}
	else if(r==0||r==1||r==6||r==8){
		printf("pon\n");
	}
	else{
		printf("hon\n");
	}
	return 0;
}