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


int main(){
	while (true)
	{
		double n;
		string ans;
		cin >> n;
		if (cin.eof() || n == 0) { break; }
		if (n <= 48.00) { ans = "light fly"; }
		else if (n <= 51.00) { ans = "fly"; }
		else if (n <= 54.00) { ans = "bantam"; }
		else if (n <= 57.00) { ans = "feather"; }
		else if (n <= 60.00) ans = "light";
		else if (n <= 64.00) ans = "light welter";
		else if (n <= 69.00) ans = "welter";
		else if (n <= 75.00) ans = "light middle";
		else if (n <= 81.00) ans = "middle";
		else if (n <= 91.00) ans = "light heavy";
		else ans = "heavy";
		cout << ans << endl;
	}
	return 0;
}