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

}
