#include<iostream>
using namespace std;

int main(){
	float w;
	float border[10] = { 48.00, 51.00, 54.00, 57.00, 60.00, 64.00, 69.00, 75.00, 81.00, 91.00 };
	char CLASS[11][16] = { "light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy" };

	while (cin >> w){
		for (int i = 0; i < 10; ++i){
			if (w <= border[i]){
				cout << CLASS[i];
				break;
			}

			if (i == 9)
				cout << CLASS[10];
		}
		cout << endl;
	}
	return 0;
}