#include<algorithm>
#include<iostream>

using namespace std;
int check_pal(string s){
	for(int i = 0; i < s.length()/2; i++){
		if(s[i] != s[s.length()-  i - 2])	
			return 1;
	}
	return 0;
}
int main(){
	string s;
	cin  >> s;
	int root = 1;
	if(s[s.length() - 1] == '1' || s[0] == '0' || check_pal(s))
		return cout << "-1",0;
	for(int i = 1; i < s.length(); i++){
		cout << root << " " << i+1 << "\n";
		if(i > 1 && s[i-1] == '1'){
			root = i+1;
		}
	}
}