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