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


string fight_class(double wight) {
	if (wight <= 48.0) return "light fly";
	else if (wight > 48.0&&wight <= 51.0)return "fly";
	else if (wight > 51.0&&wight <= 54.0)return "bantam";
	else if (wight > 54.0&&wight <= 57.0)return "feather";
	else if (wight > 57.0&&wight <= 60.0)return "light";
	else if (wight > 60.0&&wight <= 64.0)return "light welter";
	else if (wight > 64.0&&wight <= 69.0)return "welter";
	else if (wight > 69.0&&wight <= 75.0)return "light middle";
	else if (wight > 75.0&&wight <= 81.0)return "middle";
	else if (wight > 81.0&&wight <= 91.0)return "light heavy";
	else if (wight > 91.0)return "heavy";
}

int main() {
	double wight; vector<string> v;
	while (cin>>wight){
		v.push_back(fight_class(wight));
	}
	for (int i = 0; i < v.size(); i++) {
		cout << v[i] << endl;
	}
	return 0;
}