#include<stdio.h>

void func(float);

int main(void)
{
	float tai;
	
	while(scanf("%f",&tai)!=EOF)	{
		func(tai);
	}
	return 0;
}
void func(float tai)
{
	float lim[10]={48.0,51.0,54.0,57.0,60.0,64.0,69.0,75.0,81.0,91.0};
	char kai[11][13]={"light fly","fly","bantam","frather","light","light welter","welter","light","middle","light heavy","heavy"};
	int i;

	for(i=0;i<10;i++)	{
		if(lim[i]>=tai){
			break;
		}
	}
	printf("%s\n",kai[i]);
}