def dispClass(weight)
  if weight <= 48.00
    return "light fly"
  elsif weight <= 51.00
    return "fly"
  elsif weight <= 54.00
    return "bantam"
  elsif weight <= 57.00
    return "feather"
  elsif weight <= 60.00
    return "light"
  elsif weight <= 64.00
    return "light welter"
  elsif weight <= 69.00
    return "welter"
  elsif weight <= 75.00
    return "light middle"
  elsif weight <= 81.00
    return "middle"
  elsif weight <= 91.00
    return "light heavy"
  end

  return "heavy"
end

while input = gets
  puts dispClass(input.to_f)
end