A binary odometer counts up from 0. For each reading i from 0 to n inclusive, report how many 1 bits appear in the binary representation of i.
Input format
Line 1: an integer n.
Output format
n + 1 space-separated integers on one line: for each i from 0 to n, the number of set bits in i, in increasing order of i.
Constraints
- 0 <= n <= 100000