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