#include <iostream>
#include <string>

using namespace std;

int main() {
    string line;
    string classes[] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy"};
    double weights[] = {48, 51, 54, 57, 60, 64, 69, 75, 81, 91};
    for (;getline(cin, line);) {
        double weight = stof(line);
        bool flag = false;
        int i;
        for (i = 0; i < sizeof(weights) && !flag; i++) {
            if (weight <= weights[i]) {
                cout << classes[i] << endl;
                flag = true;
            }
        }
        if (!flag) {
            cout << classes[i] << endl;
        }
    }
}