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