k,n,f = gets.chomp.split(" ").map(&:to_i) b = gets.chomp.split(" ").map(&:to_i).inject(:+) a = k*n - b p (a < 0)? -1 : a