#include <string>
#include <iostream>

using namespace std;

int main()
{
	const string Class[11] = { "light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy" };

	const double Class_Weight[12] = { 0.0, 48.0, 51.0, 54.0, 57.0, 60.0, 64.0, 69.0, 75.0, 81.0, 91.0, 1000.0 };

	const int DATASETS = 100000;

	double Weight[DATASETS]; int C = 0;

	while (cin >> Weight[C])
	{
		C++;
	}

	for (int i = 0; i < C; i++)
	{
		for (int j = 0; j < 11; j++)
		{
			if (Class_Weight[j] <= Weight[i] && Weight[i] < Class_Weight[j + 1])
			{
				cout << Class[j] << endl;
			}
		}
	}

	return 0;
}