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

string classify(double weight) {
    if(weight > 91.00) return("heavy");
    if(weight > 81.00) return("light heavy");
    if(weight > 75.00) return("middle");
    if(weight > 69.00) return("light middle");
    if(weight > 64.00) return("welter");
    if(weight > 60.00) return("light welter");
    if(weight > 57.00) return("light");
    if(weight > 54.00) return("feather");
    if(weight > 51.00) return("bantam");
    if(weight > 48.00) return("fly");
    return("light fly");
}

int main(void) {
    double input;
    while(cin >> input) {
        cout << classify(input) << endl;
    }
    return(0);
}