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

void hanni(float n, string *ans) {
	int nn = n * 100;
	if (nn <= 4800) { *ans = "light fly"; }
	else if (nn <= 5100) { *ans = "fly"; }
	else if (nn <= 5400) { *ans = "bantam"; }
	else if (nn <= 5700) { *ans = "feather"; }
	else if (nn <= 6000) *ans = "light";
	else if (nn <= 6400) *ans = "light welter";
	else if (nn <= 6900) *ans = "welter";
	else if (nn <= 7500) *ans = "light middle";
	else if (nn <= 8100) *ans = "middle";
	else if (nn <= 9100) *ans = "light heavy";
	else *ans = "heavy";
}

int main(){
	while (true)
	{
		float n;
		string ans;
		cin >> n;
		if (cin.eof() || n == 0) { break; }
		hanni(n, &ans);
		cout << ans << endl;
	}
	return 0;
}