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