#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#define int long long
using namespace std;
signed main() {
	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 / 2; i++) {
		if (s[i] != s[n - i - 2]) {
			cout << "-1\n";
			return 0;
		}
	}
	int p = 1;
	for (int i = 2; i <= n; i++) {
		cout << p << ' ' << i << endl;
		if (s[i - 2] == '1')p = i;
	}
	return 0;
}