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