#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  string op;
  cin >> op;
  int cnt1 = 0, cnt2 = 0;
  for (int i = 0; i < (int)op.length(); i++) {
    if (op[i] == '0') {
      cout << 1 << " " << cnt1 + 1 << "\n";
      cnt1 = (cnt1 + 1) % 4;
    } else {
      cout << 4 << " " << cnt2 * 2 + 1 << "\n";
      cnt2 = (cnt2 + 1) % 2;
    }
  }
}
