import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.regex : regex;
import std.container;

void main()
{
	foreach (line; stdin.byLine) {
		auto w = line.chomp.to!double;
		string str;
		if (w <= 48) str = "light fly";
		else if (w <= 51) str = "fly";
		else if (w <= 54) str = "bantam";
		else if (w <= 57) str = "feather";
		else if (w <= 60) str = "light";
		else if (w <= 64) str = "light welter";
		else if (w <= 69) str = "welter";
		else if (w <= 75) str = "light middle";
		else if (w <= 81) str = "middle";
		else if (w <= 91) str = "light heavy";
		else str = "heavy";
		str.writeln;
	}
}