time limit per test
1 second
memory limit per test
512 megabytes
input
standard input
output
standard output
Examples
Input
0010100
Output
3
3 1 3 4
3 2 5 6
1 7
Input
111
Output
-1