#include<iostream>
#include<string>
using namespace std;

int main(){
	string grades[] = {
		"light fly",
		"fly",
		"bantam",
		"feather",
		"light",
		"light welter",
		"welter",
		"light middle",
		"middle",
		"light heavy",
		"heavy"
	};
	double sep[] = { 48.00, 51.00, 54.00, 57.00, 60.00, 64.00,
					 69.00, 75.00, 81.00, 91.00 };
	string in;
	while( getline( cin, in ), in.length() ){
		double w;
		sscanf( in.c_str(), "%lf", &w );
		int i=0;
		for( ; i<10; i++ ){
			if( w <= sep[i] ){
				cout << grades[i] << endl;
				break;
			}
		}
		if( i == 10 )
			cout << grades[i] << endl;
	}
	return 0;
}