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