N,K=map(int, input().split()) A=[2*K,2*K+N-2] for i in range(N-2): A.append(1) print(*A)