#include <stdio.h>
#include <string.h>

#define MAX 1000

int main()
{
	char s[MAX];
	int k;


	scanf("%s", s);

	k = strlen(s) - 1;

	k = s[k] - '0';

	if (k == 2 || k == 4 || k == 5 || k == 7 || k == 9)
		printf("hon\n");
	else if (k == 3)
		printf("bon\n");
	else
		printf("pon\n");

	return 0;
}