#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e3 + 15;
const int inf = 0x3f3f3f3f;
const int mod = 1e9 + 7;
int n;
char str[maxn];
int main() {
  scanf("%s", str);
  n = strlen(str);
  int aa = 0, bb = 0;
  for (int i = 0; i < n; i++) {
    if (str[i] == '0') {
      if (aa == 0)
        puts("1 1");
      else if (aa == 1)
        puts("1 2");
      else if (aa == 2)
        puts("1 3");
      else if (aa == 3)
        puts("1 4");
      aa = (aa + 1) % 4;
    } else {
      if (bb == 0)
        puts("3 1");
      else
        puts("3 3");
      bb = (bb + 1) % 2;
    }
  }
  return 0;
}
