#include <iostream>
#include <string>
using namespace std;

int main(){
	ios::sync_with_stdio(false);
	string s;
	cin >> s;
	int n = s.size();
	if(s[0] == '0' || s[n - 1] == '1'){
		cout << "-1\n";
		return 0;
	}
	for(int i = 0; i < n - 1; ++i){
		if(s[i] != s[n - 2 - i]){
			cout << "-1\n";
			return 0;
		}
	}

	int r = 1;
	for(int i = 0; i < n - 1; ++i){
		cout << r << ' ' << i + 2 << '\n';
		if(s[i] == '1'){
			r = i + 2;
		}
	}
}
