var
classes = {
  'light fly'   : [-Infinity, 48.00],
  'fly'         : [48.00, 51.00],
  'bantam'      : [51.00, 54.00],
  'feather'     : [54.00, 57.00],
  'light'       : [57.00, 60.00],
  'light welter': [60.00, 64.00],
  'welter'      : [64.00, 69.00],
  'light middle': [69.00, 75.00],
  'middle'      : [75.00, 81.00],
  'light heavy' : [81.00, 91.00],
  'heavy'       : [91.00, Infinity],
};

function main() {
  input.forEach(function(line) {
    var
    className;
    if(line.trim() === '') return;
    line = parseFloat(line);
    Object.keys(classes).forEach(function(name) {
      var
      range = classes[name];
      if(range[0] < line && line <= range[1]) {
        className = name;
      }
    });
    console.log(className);
  });
}

var
input = '';

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
process.stdin.on('end', function() {
  input = input.split('\n');
  main();
});