#include<stdio.h>
#include<string.h>
#define N 183
int main()
{
	int n, i, j;
	int number = 0;
	scanf("%d", &n);
	if (n % 10 == 3)
		printf("bon");
	if (n % 10 == 0 or n % 10 == 1 or n % 10 == 6 or n % 10 == 8)
		printf("pon");
	if (n % 10 == 2 or n % 10 == 4 or n % 10 == 5 or n % 10 == 7 or n % 10 == 9)
		printf("hon");
	return 0;
}