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