n,k = map(int, input().split()) res = [2*k, n+2*k-2] + [1] * (n-2) print(*res)