k, n, _ = gets.split.map(&:to_i) a = gets.split.map(&:to_i).sum puts a > k * n ? -1 : k * n - a