#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  long long int v = 0, h = 1;
  for (int k = 0; k < s.size(); k++) {
    if (s[k] == '0') {
      cout << 1 << " " << v + 1 << endl;
      v = (v + 1) % 4;
    } else {
      cout << 3 << " " << h << endl;
      h += 2;
      h %= 4;
    }
  }
}
