import sys input = lambda: sys.stdin.readline().rstrip() # ----------------------- # n, k = map(int, input().split()) ans = [2*k, 2*k+n-2] ans.extend([1 for _ in range(n-2)]) print(' '.join(map(str, ans)))