#include <string>
#include <iostream>
using namespace std;
int main() {
	string s;
	cin >> s;
	int n = s.size();
	bool ok = true;
	if (s[0] == '0' || s[n - 1] == '1') ok = false;
	for (int i = 0; i < n - 1; ++i) {
		if (s[i] != s[n - i - 2]) ok = false;
	}
	if (!ok) cout << -1 << endl;
	else {
		int pre = 1, cur = 2;
		for (int i = n - 2; i >= 0; --i) {
			cout << pre << ' ' << cur << endl;
			if (s[i] == '1') pre = cur;
			++cur;
		}
	}
	return 0;
}