#include <bits/stdc++.h>
using namespace std;
int n, s0, s1;
char s[1005];
int main() {
  scanf("%s", s + 1);
  n = strlen(s + 1);
  for (int i = 1; i <= n; i++) {
    if (s[i] == '0') {
      printf("2 %d\n", s1 + 1);
      s1 = (s1 + 1) % 4;
    } else {
      printf("1 %d\n", s0 ? 1 : 3);
      s0 = !s0;
    }
  }
}
