//Problem E
#include<bits/stdc++.h>
using namespace std;
const int N=100005;
int n,a[N];
char ch[N];
#define NO {printf("-1");return 0;}
int main(){
    scanf("%s",ch+1);n=strlen(ch+1);
    for(int i=1;i<=n;i++)a[i]=ch[i]^48;
    if(a[n]||!a[1])NO
    for(int i=1;i<n;i++)if(a[i]!=a[n-i])NO
    a[n]=1;int lust=1;
    for(int i=2;i<=n;i++)if(a[i]){
        for(int j=lust+1;j<=i;j++)printf("%d %d\n",lust,j);
        if(i<n)printf("%d %d\n",lust,i+1),lust=i+1;
        
    }
    return 0;
}