#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;cin>>s;
  int n=s.size();
  if(s[0]=='0'||s[n-1]=='1'){
    cout<<-1<<endl;
    return 0;
  }
  for(int i=0;i<(n+1)/2;i++){
    if(s[i]!=s[n-2-i]){
      cout<<-1<<endl;
      return 0;
    }
  }
  int now=0;
  for(int i=1;i<n;i++){
    if(s[i-1]=='1'){
      cout<<now+1<<" "<<i+1<<endl;
      now=i;
    }
    else{
      cout<<now+1<<" "<<i+1<<endl;
    }
  }
}