#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
/*
K	Ìdikgj
light fly	48.00kg Èº
fly	48.00kg ´51.00kg Èº
bantam	51.00kg ´54.00kg Èº
feather	54.00kg ´57.00kg Èº
light	57.00kg ´60.00kg Èº
light welter	60.00kg ´64.00kg Èº
welter	64.00kg ´69.00 kg Èº
light middle	69.00kg ´75.00 kg Èº
middle	75.00kg ´81.00 kg Èº
light heavy	81.00kg ´91.00 kg Èº
heavy	91.00kg ´
*/
//	cut here before submit 
//	freopen("testcase.class", "r", stdin);
	const string c[] = { "light fly", "fly", "bantam", "feather", "light",
	"light welter", "welter", "light middle", "middle", "light heavy", "heavy" };
	const double w[] = { 48.0, 51.0, 54.0, 57.0, 60.0, 64.0, 69.0, 75.0, 81.0, 91.0 };
	string str = "";
	int cn = sizeof(c)/sizeof(c[0]);
	int wn = sizeof(w)/sizeof(w[0]);

//	cout << "cn: " << cn << endl;
//	cout << "wn: " << wn << endl;
	int i;

	while (getline (cin, str ) ){
		if (str.empty() ){
			break;
		} // end if
		stringstream ss(str);
		double wight;
		ss >> wight;
		if (wight <= w[0]){
			cout << c[0] << endl;
		}else if (wight > w[wn - 1]){
			cout << c[cn - 1] << endl;
		}else{
			for (i = 1; i < wn; ++i){
				if (wight > w[i-1] && wight <= w[i] ){
					cout << c[i] << endl;
					break;
				} // end if
			} // end for
		} // end if

	} // end loop
		
	return 0;
}