K,N,F = map(int,input().split()) m = [] for i in range(F): n = int(input()) m.append(n) G = K * N N = G - sum(m) if N < 0: print(-1) else: print(N)