#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  int i, j;
  int x = 0, y = 0;
  for (i = 0; i < a.size(); i++) {
    if (a[i] == '0') {
      if (x == 0)
        cout << "3 1";
      else
        cout << "1 1";
      printf("\n");
      x++;
      x = x % 2;
    } else {
      if (y == 0)
        cout << "1 3";
      else
        cout << "1 1";
      printf("\n");
      y++;
      y = y % 2;
    }
  }
  return 0;
}
