#include <bits/stdc++.h>

std::string s;

bool able();

int main()
{
	std::cin >> s;
	if (!able())
	{
		printf("-1\n");
		return 0;
	}
	int pre{0};
	for (unsigned int i = 0; i < s.size() - 1; i++)
	{
		printf("%d %d\n", pre + 1, i + 2);
		if (s[i] == '1') pre = i + 1;
	}

	return 0;
}

bool able()
{
	if (s.front() == '0' || *(s.end() - 2) == '0' || s.back() == '1') return false;
	for (unsigned int i = 0; i < s.size() - 1; i++)
		if (s[i] != s[s.size() - i - 2]) return false;
	return true;
}