#include<stdio.h>

int main(){
	int N = 0;
  	scanf("%d",&N);
  	int C = N % 10;
  	if(C == 2||C == 4||C == 5||C == 7||C == 9)
		printf("hon");
  	else if(C == 3)
		printf("bon");
  	else
      	printf("pon");
return 0;
}