#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

int main()
{
    int weight[] = {48, 51, 54, 57, 60, 64, 69, 75, 81, 91};
    string name[] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy"};

    for(;;){
        double n;
        if(!(cin >> n))
            return 0;

        int i = lower_bound(weight, weight+10, n) - weight;
        cout << name[i] << endl;
    }
}