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