n = gets.to_i a = $stdin.read.split.map(&:to_i) x = Array.new(n, 0) x[0] = 1 loop do count = 0 for i in 0...n do t = ((x[i] * 100.0) / x.inject(&:+)).round if t < a[i] then x[i] += 1 count += 1 redo end end break if count <= 0 end puts x.inject(&:+)