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