N,X=map(int,input().split()) S=list(map(int,input().split())) Y=0 for i in range(N): Y+=X-S[i] print(X-Y)