Lukas loves card games and has invented a new way to shuffle a deck.
There are N cards, numbered 1 to N, stacked in the first pile in some order. A second pile starts out empty. You perform exactly N operations. Let pk be the k-th prime number (p1=2, p2=3, p3=5, …). In the k-th operation you:
For example, suppose the first pile holds 1,2,3,4,5,6,7 from top to bottom. Performing an operation with p=5 first moves the top 4 cards to the bottom, giving 5,6,7,1,2,3,4; then the top card 5 is removed and placed on the second pile, leaving 6,7,1,2,3,4.
Arrange the cards in the first pile so that after all N operations the second pile reads, from top to bottom, N,N−1,…,2,1 (that is, card 1 ends up at the very bottom of the second pile).
A single integer N (2≤N≤100000) — the number of cards in the first pile.
Output N lines. The i-th line contains ai, the number of the card at position i in the first pile, where position 1 is the top card and position N is the bottom card.
The first four primes are 2,3,5,7. Starting from the arrangement 2,1,3,4 (top to bottom), the first pile evolves as follows through the four operations:
(2,1,3,4)→(3,4,2)→(3,4)→(4)→()
Operation 1 (p1=2): move card 2 to the bottom, then take card 1. Operation 2 (p2=3): after two moves the top card is 2, which is taken. Operations 3 and 4 take cards 3 and 4. The second pile, filled from bottom to top, becomes 1,2,3,4 — that is 4,3,2,1 read from the top.