#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10, inf = 1e9 + 10;
int n;
string s;
int pos[2] = {0, 3};
int32_t main() {
  cin >> s;
  n = s.size();
  for (int i = 0; i < n; i++) {
    if (s[i] == '0') {
      pos[0]++;
      cout << "1 " << pos[0] << endl;
      pos[0] &= 3;
    } else {
      pos[1] += 2;
      pos[1] &= 3;
      cout << "3 " << pos[1] << endl;
    }
  }
}
