K Co-prime Permutation

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

Kotori is very good at math (really?) and she loves playing with permutations and primes.

One day, she thinks of a special kind of permutation named kk co-prime permutation. A permutation p_1,p_2,,p_np\_1,p\_2,\cdots,p\_n of nn is called a kk co-prime permutation of nn if there exists exactly kk integers ii such that 1in1 \le i \le n and gcd(p_i,i)=1\text{gcd}(p\_i,i)=1, where gcd(x,y)\text{gcd}(x,y) indicates the greatest common divisor of xx and yy.

Given nn and kk, please help Kotori construct a kk co-prime permutation of nn or just report that there is no such permutation.

Recall that a permutation of nn is a sequence of length nn containing all integers from 11 to nn.

입력

There is only one test case in each test file.

The first and only line contains two integers nn and kk (1n1061 \le n \le 10^6, 0kn0 \le k \le n).

출력

Output one line containing nn integers p_1,p_2,,p_np\_1, p\_2, \cdots, p\_n separated by one space, indicating the permutation satisfying the given constraints. If no such permutation exists output "-1" (without quotes) instead. If there are multiple valid answers you can print any of them.

Please, DO NOT output extra spaces at the end of each line, otherwise your answer may be considered incorrect!