#include <cstdio>
using namespace std;

int main() {
  double x[11] = {0.0, 48.0, 51.0, 54.0, 57.0, 60.0, 64.0, 69.0, 75.0, 81.0, 91.0};
  const char *label[11] = {"light fly", "fly", "bantam", "feather",  "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy"};
  double w;
  int a, b, c;
  while (scanf("%lf", &w) == 1) {
    a = 0;
    b = 11;
    do {
      c = (a+b)/2;
      if (x[c] >= w) {
        b = c;
      } else {
        a = c;
      }
    } while (a+1 < b);
    printf("%s\n", label[a]);
  }
  return 0;
}