k, n, f = gets.split.map(&:to_i) a = gets.split.map(&:to_i) remain = k * n - a.sum if remain >= 0 puts remain else puts -1 end