#include <cstdio>
#include <string>
using namespace std;
const double rank[] = {48.0, 51.0, 54.0, 57.0, 60.0, 64.0, 69.0, 75.0, 81.0, 91.0};
const string rank_name[] = {
	"light fly", "fly", "bantam", "feather", "light",
	"light welter", "welter", "light middle", "middle",
	"light heavy", "heavy"
};
/*
const char rank_name[][] = {
	{"light fly"}, {"fly"}, {"bantam"}, {"feather"}, {"light"},
	{"light welter"}, {"welter"}, {"light middle"}, {"middle"},
	{"light heavy"}, {"heavy"}
};
*/

int main(int argc, char *argv[]) {
	float rcv;
	while (EOF != fscanf(stdin, "%f", &rcv)) {
		for (int i = 0; i < sizeof(rank)/sizeof(double); i++) {
			if (rank[i] >= rcv) {
				printf("%s\n", rank_name[i].c_str());
				break;
			}
		}
	}
	return 0;
}