#include <iostream>

using namespace std;

main(){
  double in;
  while(cin >> in){
    int data=(int)(in*100.0);
    if(data<=4800){
      printf("light fly\n");
    }else if(data<=5100){
      printf("fly\n");
    }else if(data<=5400){
      printf("bantam\n");
    }else if(data<=5700){
      printf("feather\n");
    }else if(data<=6000){
      printf("light\n");
    }else if(data<=6400){
      printf("light welter\n");
    }else if(data<=6900){
      printf("welter\n");
    }else if(data<=7500){
      printf("light middle\n");
    }else if(data<=8100){
      printf("middle\n");
    }else if(data<=9100){
      printf("light heavy\n");
    }else{
      printf("heavy\n");
    }
  }
  return 0;
}