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