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