#include <bits/stdc++.h>
using namespace std;
const int nn = 1007;
char str[nn];
int n, p, q;
int main() {
  int i;
  cin >> (str + 1);
  n = strlen(str + 1);
  p = q = 1;
  for (i = 1; i <= n; i++) {
    if (str[i] == '0') {
      cout << 1 << " " << p << endl;
      p = (p + 1) & 3;
      if (!p) p = 4;
    } else {
      cout << 4 << " " << q << endl;
      q = (q + 2) & 3;
    }
  }
  return 0;
}
