N,K = map(int,input().split()) A = [1]*N A[0] = 2*K A[1] = 2*K+N-2 print(*A)