#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  bool vert = false, horz = false;
  for (auto x : s) {
    if (x == '0') {
      if (vert) {
        cout << 3 << " " << 1 << endl;
        vert = false;
      } else {
        cout << 1 << " " << 1 << endl;
        vert = true;
      }
    } else {
      if (horz) {
        cout << 4 << " " << 1 << endl;
        horz = false;
      } else {
        cout << 4 << " " << 3 << endl;
        horz = true;
      }
    }
  }
}
