#include <stdio.h>
 
int main(void) {

	int n, a;
	
	scanf("%d", &n);
	
	a = n % 10;
	
	if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9 )
		printf("hon");
	else if(a == 0 || a == 1 || a == 6 || a == 8)
		printf("pon");
	else if(a == 3)
		printf("bon");

	return 0;
}