N,K=map(int,input().split()) ANS=[K+1,K*(K+N-1)] for i in range(N-2): ANS.append(1) print(*ANS)