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