CSES - One Bit Positions
  • Time limit: 1.00 s
  • Memory limit: 512 MB

You are given a binary string of length nn. Your task is to calculate, for every kk between 1n11 \ldots n-1, the number of ways we can choose two positions ii and jj such that ij=ki-j=k and there is a one-bit at both positions.

Input

The only input line has a string that consists only of characters 00 and 11.

Output

For every distance kk between 1n11\ldots n-1 print the number of ways we can choose two such positions.

Constraints

  • 2n21052 \le n \le 2 \cdot 10^5

Example

Input:

1001011010

Output:

1 2 3 0 2 1 0 1 0