import std.stdio,std.string,std.conv;

int main()
{
	string s;
	while((s = readln.chomp).length != 0)
	{
		double d = s.to!double;
		if(91.00 < d) "heavy".writeln;
		if(81.00 < d && d <= 91.00) "light heavy".writeln;
		if(75.00 < d && d <= 81.00) "middle".writeln;
		if(69.00 < d && d <= 75.00) "light middle".writeln;
		if(64.00 < d && d <= 69.00) "welter".writeln;
		if(60.00 < d && d <= 64.00) "light welter".writeln;
		if(57.00 < d && d <= 60.00) "light".writeln;
		if(54.00 < d && d <= 57.00) "feather".writeln;
		if(51.00 < d && d <= 54.00) "bantam".writeln;
		if(48.00 < d && d <= 51.00) "fly".writeln;
		if(d <= 48.00) "light fly".writeln;
	}
	return 0;
}