#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int zero = 0, one = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '1') {
      one++;
      one = one % 2;
      if (one == 0) {
        cout << 1 << " " << 3 << endl;
      } else {
        cout << 1 << " " << 1 << endl;
      }
    }
    if (s[i] == '0') {
      zero++;
      zero = zero % 4;
      if (zero == 0) {
        cout << 2 << " " << 4 << endl;
      } else {
        cout << 2 << " " << zero << endl;
      }
    }
  }
  return 0;
}
