#include<iostream>
#include<cstring>
using namespace std;
int main(){
  double c,a[10]={48.00,51.00,54.00,57.00,60.00,64.00,69.00,75.00,81.00,91.00};
  string b[11]={"light fly","fly","bantam","feather","light","light welter",
	      "welter","light middle","middle","light heavy","heavy"};
  while(cin>>c)
    for(int i=0;i<10;i++)
      if(c<=a[i]){
	cout<<b[i]<<endl;
	break;
      }
      else if(c>a[9]){
	cout<<b[10]<<endl;
	break;
      }
  return 0;
}