#include<bits/stdc++.h>
using namespace std;

const int N = 100005;
int n;
char a[N];
vector<int> v;

int main()
{
	scanf("%s",a+1);
	n = strlen(a+1);
	if(a[1] == '0' || a[n] == '1') {
		puts("-1");
		return 0;
	}
	for(int i=1;i<=n-1;i++) {
		if(a[i] != a[n-i]) {
			puts("-1");
			return 0;
		}
	}
	for(int i=1;i<=n-1;i++) {
		if(a[i] == '1') v.push_back(i);
	}
	v.push_back(n);
	for(int i=1;i<(int)v.size();i++) {
		printf("%d %d\n",v[i-1],v[i]);
		for(int j=v[i-1]+1;j<v[i];j++) {
			printf("%d %d\n",j,v[i]);
		}
	}
}
