n = gets.to_i a = gets.split(" ").map(&:to_i) count = 0 sum = 0 a.each{ |i| sum += i} 101.times do |num| count += 1 if (sum + num) % n == 0 end puts count