N,D=map(int,input().split()) a=[int(x) for x in input().split()] a=[0]+a for i in range(1,N): a[i]=max(a[i-1]+D,a[i]) print(*a)