N=gets.to_i C=gets.split.map(&:to_i) m=C.inject(:+) p C.map{|i|i*100/m}.select{|s|s<=10}.size * 30