#include <stdio.h>

int main(void) {
	int n = 0;

	scanf("%d", &n);
	n = n % 10;

	if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
		printf("hon");//2,4,5,7,9
	}
	else if (n == 0 || n == 1 || n == 6 || n == 8) {
		printf("pon");//0,1,6,8
	}
	else {
		printf("bon");//3
	}

	return 0;
}
