#include <iostream>
using namespace std;

int classNameIndex(double weight) {
    int ret;
    if (weight <= 48) ret = 0;
    else if (weight <= 51) ret = 1;
    else if (weight <= 54) ret = 2;
    else if (weight <= 57) ret = 3;
    else if (weight <= 60) ret = 4;
    else if (weight <= 64) ret = 5;
    else if (weight <= 69) ret = 6;
    else if (weight <= 75) ret = 7;
    else if (weight <= 81) ret = 8;
    else if (weight <= 91) ret = 9;
    else ret = 10;
    return ret;
}

int main() {
    const char* className[] = {
        "light fly", "fly", "bantam", "feather", "light", "light welter",
        "welter", "light middle", "middle", "light heavy", "heavy",
    };
    double weight;
    while (cin >> weight) {
        cout << className[classNameIndex(weight)] << endl;
    }
}