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

int main(){
	string str[]={"light fly","fly","bantam","feather","light","light welter","welter","light middle","middle","light heavy","heavy"};
	double up[]={0,3.0,3.0,3.0,3.0,4.0,5.0,6.0,6.0,10.0,0};
	double n;
	int i;
	while(cin >> n){
		if(n <=48.0) cout << str[0] << endl;
		else if(n > 91.0) cout << str[10] << endl;
		else {
			double wei = 48.0;
			for(i=1;i<10;i++){
				if(n > wei && n <= wei+up[i]){
					cout << wei+3.0 << str[i] << endl;
					break;
				}
				wei += up[i];
			}
		}
	}
}