f=lambda:map(int,input().split()) N,X=f() print(sum(f())-X*N+X)