#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int r = 0, c = 0;
  cin >> s;
  for (char d : s) {
    if (d == '0' && !c) {
      cout << "1 1\n";
      c++;
      c %= 2;
    } else if (d == '0') {
      cout << "3 1\n";
      c++;
      c %= 2;
    } else if (d == '1' && !r) {
      cout << "4 3\n";
      r++;
      r %= 2;
    } else {
      cout << "4 1\n";
      r++;
      r %= 2;
    }
  }
}
