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