k, n, f = gets.split.map &:to_i a = gets.split.sum &:to_i rem = k * n - a if rem < 0 p -1 else p rem end