- Time limit: 1.00 s
- Memory limit: 512 MB
You are given a binary string of length . Your task is to calculate, for every between , the number of ways we can choose two positions and such that and there is a one-bit at both positions.
Input
The only input line has a string that consists only of characters and .
Output
For every distance between print the number of ways we can choose two such positions.
Constraints
Example
Input:
1001011010
Output:
1 2 3 0 2 1 0 1 0