classes = %w(light_fly fly bantam feather light light_welter welter light_middle mddle light_heavy heavy)
upper_bound = [48,51,54,57,60,64,69,75,81,91, Float::INFINITY]
puts $<.map {|s|
    classes[upper_bound.index{|ub| s.to_f <= ub}]
}