k, n, f = gets.split.map(&:to_i) as = gets.split.map(&:to_i) rest = (k * n) - (as.inject(&:+)) rest = -1 if rest < 0 puts rest