gets v = gets.split.map(&:to_i) r = v.sum / v.size puts v.select {|x| x <= r}.size * 30