#pragma warning(disable:4996)
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main()
{
	char n[4];
	scanf("%s", &n);

	int i = strlen(n);
	int j = atoi(&n[i - 1]);
	if (j == 3) 
	{
		printf("bon");
	}
	else if (j == 2 || j == 4 || j == 5 || j == 7 || j == 9) {
		printf("hon");
	}
	else {
		printf("pon");
	}
	return 0;
}