#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  vector<long long> v(s.size());
  long long n = s.size();
  for (long long i = 0; i < s.size(); ++i) {
    v[i] = s[i] - '0';
  }
  long long s1 = 0;
  long long s23 = 0;
  for (long long i = 0; i < n; ++i) {
    if (v[i] == 0) {
      cout << s1 * 2 + 1 << " " << 1 << endl;
      s1 = (s1 + 1) % 2;
    } else {
      cout << s23 + 1 << " " << 2 << endl;
      s23 = (s23 + 1) % 4;
    }
  }
  return 0;
}
