#include <bits/stdc++.h>
using namespace std;
struct graw {
  unsigned long long x;
  unsigned long long y;
};
bool cmp(graw a, graw b) {
  if (a.x < b.x)
    return 1;
  else
    return 0;
}
int main() {
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(false);
  graw a[100005] = {0};
  char b;
  bool z = 0;
  bool k = 0;
  string s;
  cin >> s;
  for (unsigned long long i = 0; i < s.size(); i++) {
    b = s[i];
    if (b == '0') {
      if (z == 0) {
        cout << 3 << " " << 4 << endl;
        z = 1;
      } else if (z == 1) {
        cout << 1 << " " << 4 << endl;
        z = 0;
      }
    }
    if (b == '1') {
      if (k == 0) {
        cout << 1 << " " << 1 << endl;
        k = 1;
      } else if (k == 1) {
        cout << 1 << " " << 3 << endl;
        k = 0;
      }
    }
  }
}
