N,K = map(int, input().split()) output = [1 for _ in range(N)] # len(output) == N output[0] = 2*K output[1] = 2*K+N-2 print(*output)