x = gets
until x.nil?
 y = x.to_f
 if y <= 48.00
  puts "light fly"
 elsif y <= 51.00
  puts "fly"
 elsif y <= 54.00
  puts "bantam"
 elsif y <= 57.00
  puts "feather"
 elsif y <= 60.00
  puts "light"
 elsif y <= 64.00
  puts "light welter"
 elsif y <= 69.00
  puts "welter"
 elsif y <= 75.00
  puts "light middle"
 elsif y <= 81.00
  puts "middle"
 elsif y <= 91.00
  puts "light heavy"
 elsif 91.00 < y
  puts "heavy"
 end

 x = gets
end


