#include <stdio.h>

int	main(void)
{
  	int	n;
  	int	r;
  	
  	scanf("%d", &n);
  
  	r = n % 10;
  
  	if (r == 2 || r == 4 || r == 5 || r == 7 || r == 9)
    {
    	printf("hon");
    }
  	else if(r == 0 || r == 1 || r == 6 || r == 8)
    {
      	printf("pon");
    }
  	else if(r == 3)
    {
      	printf("bon");
    }
  	
  	return (0);
}