#include<stdio.h>

int main(void)
{
	unsigned long int a, b, c;


	scanf("%ld", &a);

	switch (a % 10) {
	case 3:
		printf("bon");
		break;
	case 0:
	case 6:
	case 8:
	case 1:
		printf("pon");
		break;
	default:
		printf("hon");
	}

	return 0;
}