#include <bits/stdc++.h>
using namespace std;
char s[1010];
int main() {
  scanf("%s", s + 1);
  int n = strlen(s + 1);
  int a = 3, b = 1;
  int c = 0, d = 3;
  for (int i = 1; i <= n; i++) {
    if (s[i] == '0') {
      a = 4 - a;
      printf("%d %d\n", a, b);
    } else {
      c++;
      printf("%d %d\n", c, d);
      if (c == 4) c = 0;
    }
  }
  return 0;
}
