#include <stdio.h>
int main(){
 
 int N;
 int x;
 int y;
 
 scanf("%d", &N);
 
 x = N % 100;
 y = x % 10;
 
 switch(y){
 case 3:
  printf("bon");
  break;
 case 0:
 case 1:
 case 6:
 case 8:
  printf("pon");
  break;
 default:
  printf("hon");
 }
 
 return 0;
}
