#include <bits/stdc++.h>
using namespace std;
using namespace std;
int len, s0 = 0, s1 = 0;
string s;
int main() {
  cin >> s;
  len = s.length();
  for (int i = 0; i < len; i++) {
    if (s[i] == '0')
      s0++;
    else
      s1++;
    if (s[i] == '0') {
      if (s0 % 2 == 0)
        printf("3 1\n");
      else
        printf("1 1\n");
    } else {
      if (s1 % 4 == 0)
        printf("4 3\n");
      else if (s1 % 4 == 1)
        printf("1 3\n");
      else if (s1 % 4 == 2)
        printf("2 3\n");
      else
        printf("3 3\n");
    }
  }
  return 0;
}
