#include <stdio.h>
#include <vector>
using namespace std;

int N; char S[100100];

int main()
{
	scanf ("%s",S+1);
	while (S[N+1]) N++;

	if (S[N] == '1' || S[1] == '0'){
		puts("-1");
		return 0;
	}

	for (int i=1;i<N;i++) if (S[i] != S[N-i]){
		puts("-1");
		return 0;
	}

	vector<int> last;
	last.push_back(1);
	for (int i=2;i<=N;i++){
		if (S[i] == '1'){
			for (auto &x : last) printf ("%d %d\n",x,i);
			last.clear();
		}
		last.push_back(i);
	}
	printf ("%d %d\n",N-1,N);

	return 0;
}