#include <iostream>
using namespace std;

string judge(double weight){
  string bclass;
  if(weight <= 48.00){
    bclass = "light fly";
  }else if(48.00 < weight && weight <= 51.00){
    bclass = "fly";
  }else if(51.00 < weight && weight <= 54.00){
    bclass = "bantam";
  }else if(54.00 < weight && weight <= 57.00){
    bclass = "feather";
  }else if(57.00 < weight && weight <= 60.00){
    bclass = "light";
  }else if(60.00 < weight && weight <= 64.00){
    bclass = "light welter";
  }else if(64.00 < weight && weight <= 69.00){
    bclass = "welter";
  }else if(69.00 < weight && weight <= 75.00){
    bclass = "light middle";
  }else if(75.00 < weight && weight <= 81.00){
    bclass = "middle";
  }else if(81.00 < weight && weight <= 91.00){
    bclass = "light heavy";
  }else if(91.00< weight){
    bclass = "heavy";
  }
  
  return bclass;
}

int main(void){
  double weight;
  while(cin >> weight){
    cout << judge(weight) << endl;
  }
  return 0;
}