#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);

  int n;
  string s;

  cin >> s;

  n = (int)s.size();
  s = '0' + s;

  if (s[1] == '0') {
    cout << "-1\n";
    return 0;
  }

  if (s[n] == '1') {
    cout << "-1\n";
    return 0;
  }

  for (int i = 1; i < n; i++) {
    if (s[i] != s[n - i]) {
      cout << "-1\n";
      return 0;
    }
  }

  int rt = 1;
  for (int i = 1; i <= n - 1; i++) {
    cout << rt << ' ' << i + 1 << '\n';
    if (s[i] == '1') rt = i + 1;
  }

  return 0;
}
