Consider the sequence of consecutive integers $n, n+1, n+2, \dots, m$ from $n$ to $m$. By rearranging these numbers appropriately, you can make the sum of every two adjacent numbers non-prime; a sequence arranged this way is called a prime-free sequence.
For example, when $n = 1$ and $m = 10$, the arrangement 1, 3, 5, 4, 2, 6, 9, 7, 8, 10 is one prime-free sequence, and it is the lexicographically smallest among all of them.
Extending this idea, a $d$-th order prime-free sequence is a sequence in which the sum of every $2, 3, \dots, d$ consecutive numbers is non-prime. The sequence above is a $2$nd order prime-free sequence, because the sum of each pair of adjacent numbers is non-prime. It is not a $3$rd order prime-free sequence, however, because the three consecutive numbers 5, 4, 2 sum to 11, which is prime. For $n = 1$ and $m = 10$, the lexicographically smallest $3$rd order prime-free sequence is 1, 3, 5, 4, 6, 2, 10, 8, 7, 9.
Given $n$, $m$, and $d$, write a program that finds the lexicographically smallest $d$-th order prime-free sequence.
The input consists of several test cases. Each test case is a single line containing three integers $n$, $m$, and $d$ separated by spaces, satisfying $1 \le n < m \le 1000$ and $2 \le d \le 10$.
The last line of the input contains $0\ 0\ 0$ and must not be processed.
For each test case, print the $d$-th order prime-free sequence on one line, with the numbers separated by commas (,). If more than one such sequence exists, print the lexicographically smallest one (the sequence whose first number is smallest; if tied, whose second number is smallest; and so on).
If no $d$-th order prime-free sequence exists, print No anti-prime sequence exists.