#include<bits/stdc++.h>
using namespace std ;
const int maxn = 1e5 + 10 ;
string s ;
int main()
{
	cin >> s ;
	bool b  = 1 ;
	if ( s[0] != '1' || s[s.size()-1] != '0' ) 
		b = false ;
	for ( int i = 0; i< s.size()-1 ; i++)
		if ( s[i] != s[s.size()-2-i] ) 
			b = false ;
	if ( !b ) 
		cout << -1<< endl;
	else
	{
		int x = 1;
		for ( int i = 0 ; i<s.size()-1 ; i++)
		{
			cout << x << " " << i+2 << "\n" ;
		if ( s[i] == '1' ) 
			x = i+ 2 ;
		}
	}

}