n,k = map(int, input.split()) res = [2*n,n+2*k-2] for i in range(n-2): res.append(1) print(*res)