n,k = map(int,input().split()) A = [50000,50001] cent = 50000 j = 1 for i in range(2,n): if i < n - k: j = -j now = cent + i * j A.append(now) print(*A)