#include <bits/stdc++.h>
using namespace std;
using Long = long long;
int main() {
  int v = 0, h = 0;
  string s;
  cin >> s;
  for (char c : s) {
    if (c == '0') {
      cout << 3 << " " << (v + 1) << endl;
      v = (v + 1) % 4;
    } else {
      cout << 1 << " " << (h + 1) << endl;
      h = (h + 2) % 4;
    }
  }
  return 0;
}
