#include<iostream>

const double s[] = { 48.0, 51.0, 54.0, 57.0, 60.0, 64.0, 69.0, 75.0, 81.0, 91.0 };
const char cls[][30] = { "light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy" };

int main()
{
	double f;
	
	while( std::cin >> f ){
		if( f <= 48.0 ){
			std::cout << "light fly" << std::endl;
		}
		else if( f > 91.0 ){
		 	std::cout << "heavy" << std::endl;
		}
		else{
		 	for( int i = 8; i >= 0; i-- ){
				if( s[i] < f && f <= s[i+1] ){
					std::cout << cls[i+1] << std::endl;
				}
			}
		}
	}

 	return 0;
}