#include<stdio.h>

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