import sys input = sys.stdin.readline def main(): N,K = map(int,input().split()) A = 1 + K B = K**2 + K*(N-2) + K ans = [1]*(N-2) + [A,B] print(*ans) if __name__ == "__main__": main()