#include <stdio.h>

int	main(void)
{
	int	N, first;

	scanf("%d", &N);
	first = N % 10;
	if (first == 3)
		printf("bon\n");
	else if (first == 0 || first == 1 || first == 6 || first == 8)
		printf("pon\n");
	else
		printf("hon\n");
	return (0);
}