N,K = map(int, input().split()) L = [1]*N L[0] = (K+1)**2-(K+1)+(N-2)*K L[1] = K+1 print(*L)