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