k, n, f = gets.split.map(&:to_i) a = gets.split.map(&:to_i).inject(:+) p a > k * n ? -1 : k * n - a