#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
using namespace std;
#define EPS (1e-10)

const char *Class(double w)
{
#define judgeit(lim, name) { if (w < lim + EPS) return name; }
  judgeit(48.00, "light fly");
  judgeit(51.00, "fly");
  judgeit(54.00, "bantam");
  judgeit(57.00, "feather");
  judgeit(60.00, "light");
  judgeit(64.00, "light welter");
  judgeit(69.00, "welter");
  judgeit(75.00, "light middle");
  judgeit(81.00, "middle");
  judgeit(91.00, "light heavy");
  return "heaby";
}

int main(int argc, char **argv)
{
  double weight;
  while (cin>>weight) {
    cout << Class(weight) << endl;
  }
  return 0;
}