<a href="https://codeforces.com/contest/288/problem/C">https://codeforces.com/contest/288/problem/C</a>
Input Format
.
Output Format
.
Constraints
.
Notice
.
Example
Input
4
Output
20 0 2 1 4 3
<a href="https://codeforces.com/contest/288/problem/C">https://codeforces.com/contest/288/problem/C</a>
.
.
.
4
20 0 2 1 4 3