#include<stdio.h>
int main(){
  int n,sum;
    scanf("%d",&n);
    sum = 10 % n;
  		
  		if(sum == 3){
          printf("bon");
        }
    
        if(sum == 0||sum == 1||sum == 6||sum == 8){
          printf("pon");
        }
  
		else{
          printf("hon");
        }
  
  return 0;
}