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

int main() {
	double weight[] = {0.0,48.0,51.0,54.0,57.0,60.0,64.0,69.0,75.0,81.0,91.0,1000.0};
	string name[] = {"light fly","fly","bantam","feather","light","light welter","welter","light middle","middle","light heavy","heavy"};
	double w;
	while(cin >> w){
		for(int i = 0;i < 11;i++){
			w = ceil(w * 10) / 10;
			if(w > weight[i] && w <= weight[i + 1]) cout << name[i] << endl;
		}
	}
	return 0;
}