#include<stdio.h>
#include<math.h>
#include<string.h>
int main( )
{ 
	int i;
	int a[5]={2,4,5,7,9};
	int b[5]={0,1,6,8};
	int c=3;
	int n;
	scanf("%d",&n);
	int x;
	x=n%10;
	for(i=0;i<5;i++)
	{
		if(a[i]==x)
		{printf("hon"),return 0;}
	}
	for(i=0;i<4;i++)
	{
		if(b[i]==x)
		{printf("pon"),return 0;}
	}
	if(x==c)
	{printf("bon"),return 0;}
}
