k, n, f = gets.chomp.split(' ').map(&:to_i) a = gets.chomp.split(' ').map(&:to_i) pick = k * n need = a.sum rest = pick - need puts rest < 0 ? -1 : rest