For each integer i from 0 to n inclusive, compute the number of 1-bits in the binary representation of i, and output all n + 1 counts in order.
Input format
One line: a non-negative integer n.
Output format
One line: n + 1 space-separated integers; the i-th is the number of set bits in i.
Constraints
- 0 <= n <= 100000