#include<iostream>
using namespace std;
int main(){
	int bound[10]={91,81,75,69,64,60,57,54,51,48};
	char rank[11][16]={"heavy","light heavy","middle","light middle"
		,"welter","light welter","light","feather","bantam","fly","light fly"};
	double w;
	while(cin>>w){
		int ans=10;
		for(int i=0;i<10;i++){
			if(bound[i] < w){
				ans=i;
				break;
			}
		}
		cout<<rank[ans]<<endl;
	}
	return 0;
}