#include<stdio.h>

int main(void) {
	unsigned int	iNumber;
	char			cCondition = 0;
	//正の整数を入力
	scanf("%d", &iNumber);
	//入力された数に応じた"本"の読み方を出力
	switch (iNumber % 10)
	{
	case 0:
		printf("pon\n");
		break;
	case 1:
		printf("pon\n");
		break;
	case 2:
		printf("hon\n");
		break;
	case 3:
		printf("bon\n");
		break;
	case 4:
		printf("hon\n");
		break;
	case 5:
		printf("hon\n");
		break;
	case 6:
		printf("pon\n");
		break;
	case 7:
		printf("hon\n");
		break;
	case 8:
		printf("pon\n");
		break;
	case 9:
		printf("hon\n");
		break;
	default:
		break;
	}
	return 0;
}