/*  ex3_2
    potter0723sw  */

#include <stdio.h>

int main(void) {
	int N;
	scanf("%d", &N);
	poO = N % 10 //poOはplace of Oneの略
	if(poO == 2 || poO == 4 || poO == 5 || poO == 7 || poO == 9){//１の位を参照するために%10をした
    	printf("hon\n");
    }else if(poO == 0 || poO == 1 || poO == 6 || poO == 8){
    	printf("pon\n");
    }else printf("bon\n");
	return 0;
}
