#include <bits/stdc++.h>
main(){char* s[]={"light fly","fly","bantam","feather","light","light welter","welter","light middle","middle","light heavy","heavy"};float f[]={0,48,51,54,57,60,64,69,75,81,91,1e9};while(std::cin>>*f){int i=1;for(;*f>f[i++];){}printf("%s\n",s[i-2]);}}