import scala.io.Source.stdin

object Main {
  def weightClass(weight: Double): String =
    if (weight > 91) "heavy"
    else if (weight > 81) "light heavy"
    else if (weight > 75) "middle"
    else if (weight > 69) "light middle"
    else if (weight > 64) "welter"
    else if (weight > 60) "light welter"
    else if (weight > 57) "light"
    else if (weight > 54) "feather"
    else if (weight > 51) "bantam"
    else if (weight > 48) "fly"
    else "light fly"

  def results(i: Iterator[String], result: Vector[String] = Vector()): Vector[String] =
    if (i.hasNext) results(i, result :+ weightClass(i.next.toDouble))
    else result

  def main(args: Array[String]): Unit = {
    results(stdin.getLines).foreach(println)
  }
}