N,X=map(int,input().split()) S = list(map(int,input().split())) print(X-((N+1)*X-sum(S)-X))