k,n,f = gets.split.map(&:to_i) a = gets.split.map(&:to_i) puts (s = a.inject(k*n, &:-)) >= 0 ? s : -1