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