#include<cstdio>
#include<cstdlib>
#include<cstring>
int n;
char s[100010];

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