#include<bits/stdc++.h>
using namespace std;
const int N=100005;
char s[N];
int a[N];
void addedge(int u,int v){
	printf("%d %d\n",u,v);
}
int main(){
	scanf("%s",s+1);
	int n=strlen(s+1);
	for (int i=1;i<=n;i++)
	a[i]=s[i]-'0';
	if (a[1]==0||a[n]==1){printf("-1\n"); return 0;}
	for (int i=1;i<=n;i++)
	if ((a[i]^a[n-i])==1){printf("-1\n"); return 0;}
	int now=1;
	for (int i=2;i<=n;i++){
		addedge(now,i);
		if (a[i-1]==1) now=i;
	}
	return 0;
}