#include <bits/stdc++.h>
using namespace std;

int main(){
    double w[] = {0,48,51,54,57,60,64,69,75,81,91,1e9};
    string s[] = {"light fly","fly","bantam","feather","light","light welter","welter","light middle","middle","light heavy","heavy"};
    double x;
    while(cin >> x){
        int i = 0;
        while(1){
            if(x < w[i+1] + 1e-6){
                cout << s[i] << endl;
                break;
            }
            i++;
        }
    }
    return 0;
}

