K,N,F=map(int,input().split()) C=K*N a=list(map(int,input().split())) for i in range(F): C-=a[i] if C<0: print(-1) else: print(C)