Consider the following algorithm for searching for an integer $$$x$$$ in an array $$$a$$$ of length $$$n$$$, where the elements are numbered from $$$1$$$ to $$$n$$$:
It can be shown that if the array $$$a$$$ is sorted in non-decreasing order, then any element of $$$a$$$ will be successfully found by this algorithm.
Your task is as follows: for a given number $$$n$$$, consider all pairs $$$(i, j)$$$ such that $$$1 \le i \lt j \le n$$$. For each of these pairs, you need to calculate its beauty — the number of integers $$$x$$$ from $$$1$$$ to $$$n$$$ that can be successfully found by the described algorithm if we take the array $$$a = [1, 2, 3, \dots, n]$$$ and swap the elements $$$a_i$$$ and $$$a_j$$$. After that, for each $$$k$$$ from $$$0$$$ to $$$n$$$, you need to output $$$p_k$$$ — the number of pairs with beauty $$$k$$$.
The only line of the input contains one integer $$$n$$$ ($$$3 \le n \le 5 \cdot 10^6$$$).
Print $$$n+1$$$ integers $$$p_0, p_1, \dots, p_n$$$, where $$$p_k$$$ is the number of pairs $$$(i, j)$$$ with beauty $$$k$$$.
4
0 0 3 3 0
5
0 0 2 4 4 0
3
0 1 2 0
13
0 0 0 0 0 0 1 3 8 9 21 24 12 0
Consider an example where $$$n = 4$$$:
| Name |
|---|


