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