Given an integer n. Initially you have permutation p of size n: pi=i. To build new array a from p following steps are done while permutation p is not empty:
Your task is to find a after p became empty.
Note: gcd(a,b) is the greatest common divisor of integers a and b.
Input format
Input contains single integer n (1≤n≤2⋅106) — the size of permutation p.
Output format
Print n integers — array a.
It's needed 4 iterations to create array a: