Permutation *p* is an ordered set of integers *p*<sub class="lower-index">1</sub>,  *p*<sub class="lower-index">2</sub>,  ...,  *p*<sub class="lower-index">*n*</sub>, consisting of *n* distinct positive integers, each of them doesn't exceed *n*. We'll denote the *i*-th element of permutation *p* as *p*<sub class="lower-index">*i*</sub>. We'll call number *n* the size or the length of permutation *p*<sub class="lower-index">1</sub>,  *p*<sub class="lower-index">2</sub>,  ...,  *p*<sub class="lower-index">*n*</sub>.

The decreasing coefficient of permutation *p*<sub class="lower-index">1</sub>, *p*<sub class="lower-index">2</sub>, ..., *p*<sub class="lower-index">*n*</sub> is the number of such *i* (1 ≤ *i* &lt; *n*), that *p*<sub class="lower-index">*i*</sub> &gt; *p*<sub class="lower-index">*i* + 1</sub>.

You have numbers *n* and *k*. Your task is to print the permutation of length *n* with decreasing coefficient *k*.
The single line contains two space-separated integers: *n*, *k* (1 ≤ *n* ≤ 10<sup class="upper-index">5</sup>, 0 ≤ *k* &lt; *n*) — the permutation length and the decreasing coefficient.
# cook your dish here
from sys import stdin, stdout
import math
from itertools import permutations, combinations
from collections import defaultdict
from bisect import bisect_left 

def L():
    return list(map(int, stdin.readline().split()))

def In():
    return map(int, stdin.readline().split())

def I():
    return int(stdin.readline())

P = 1000000007
n, k = In()
arr = [ i for i in range(1,n+1)]
if k == 0:
    for i in arr:
        print(i, end = " ")
elif k == n-1:
    for i in arr:
        print(i, end = " ")
else:
    if k <= n//2:
        i = n-1
        while (k != 0):
            tmp = arr[i]
            arr[i] = arr[i-1]
            arr[i-1] = tmp
            i -= 2
            k -= 1
    else:
        arr.sort(reverse = True)
        i = n-1
        k = n-k-1
        while (k != 0):
            tmp = arr[i]
            arr[i] = arr[i-1]
            arr[i-1] = tmp
            i -= 2
            k -= 1
for i in arr:
    print(i, end = " ")

        