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