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

void main() {
  double[] weight = [48, 51, 54, 57, 60, 64, 69, 75, 81, 91];
  string[] names =
    ["light fly", "fly", "bantam", "feather",
     "light", "light welter", "welter",
     "light middle", "middle", "light heavy", "heavy"];
  while(true) {
    string line = readln.chomp;
    if (stdin.eof) break;
    double num = line.to!(double);
    string ans;
    if (weight[0] >= num) ans = names[0];
    else if (weight[$ - 1] < num) ans = names[$ - 1];
    else {
      for(uint i = 0; i < (weight.length - 1); i++) {
        if (weight[i] < num && num <= weight[i + 1]) {
          ans = names[i + 1];
        }
      }
    }
    writeln(ans);
  }  
}