# -*- coding: utf-8 -*- n, k = map(int, input().split()) l = [1, 25000] for i in range(1, n-1): a = l[i-1] b = l[i] # 門松列を作らない if k>0: c = a+25000 if a>b else b+25000 l.append(c) k -= 1 # 門松列を作る else: c = a-1 if a>b else a+1 l.append(c) for num in l: print(num)