#include<cstdio>
#include<cstdlib>
#include<cstring>

char s[100010];

int main()
{
	scanf("%s",s);
	int n=strlen(s);
	if(s[0]=='0' || s[n-1]=='1') {printf("-1");return 0;}
	for(int i=0;i<n/2;i++)
		if(s[i]!=s[n-i-2]) {printf("-1");return 0;}
	int fa=1;
	for(int i=2;i<=n;i++)
	{
		printf("%d %d\n",fa,i);
		if(s[i-2]=='1') fa=i;
	}
}