#include <bits/stdc++.h>
using namespace std;
const int maxn = 1005;
char s[maxn];
int main() {
  scanf("%s", s);
  int len = strlen(s);
  int c1 = 0, c2 = 0;
  for (int i = 0; i < len; i++) {
    if (s[i] == '0') {
      c1++;
      cout << 1 << " " << c1 << endl;
      c1 %= 4;
    } else {
      c2++;
      cout << 3 << " " << c2 * 2 - 1 << endl;
      c2 %= 2;
    }
  }
  return 0;
}
