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