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

const string cls[] = {
    "",
    "light fly",
    "fly",
    "bantam",
    "feather",
    "light",
    "light welter",
    "welter",
    "light middle",
    "middle",
    "light heavy",
    "heavy"
};

const int a[] = {
    -100,
    48,
    51,
    54,
    57,
    60,
    64,
    69,
    75,
    81,
    91,
    100000000
};

int main(){
    double w;
    while (cin >> w){
        int i = 0;
        while (w > a[i]) i++;
        cout << cls[i] << endl;
    }
}