from math import factorial
    
def f(m, k):
    if m > k:
        return 0
    else:
        return (factorial(k)) / (factorial(m) * (factorial(k-m)))
    
n, m = input().split(' ')
n, m = int(n), int(m)

v = []
for i in range(0, m):
    k = 0
    while f(m-i, k+1) <= n:
        k += 1
    v.append(str(k))
    n = n - f(m-i, k)


print(' '.join(v))