import std.stdio, std.algorithm, std.range, std.conv, std.string, std.math, std.container, std.typecons;
import core.stdc.stdio;
// foreach, foreach_reverse, writeln

void main() {
	string s;
	s = readln().chomp;
	int n = s.length.to!int;
	if (s[n-1] == '1') {
		writeln(-1);
		return;
	}
	if (s[0] == '0') {
		writeln(-1);
		return;
	}
	foreach (i; 0..n-1) {
		if (s[i] != s[n-2-i]) {
			writeln(-1);
			return;
		}
	}
	int v = 2, front = 2;
	writeln(1,' ',2);
	foreach (i; 1..n-1) {
		v++;
		writeln(front,' ',v);
		if (s[i] == '1') {
			front = v;
		}
	}
}