K,N,F=gets.split.map(&:to_i) A=gets.split.map(&:to_i) sum=K*N A.each do |i| sum-=i end puts sum if sum>=0 puts -1 if sum<0