#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int vert_row = 1;
  int vert_col = 1;
  int hor_row = 1;
  bool present_vert = false;
  bool present_hor = false;
  for (int i = 0; i < (int)s.size(); i++) {
    if (s[i] == '0') {
      if (present_vert) {
        present_vert = false;
        cout << "3 4\n";
      } else {
        present_vert = true;
        cout << "1 4\n";
      }
    } else {
      if (present_hor) {
        present_hor = false;
        cout << "4 3\n";
      } else {
        present_hor = true;
        cout << "4 1\n";
      }
    }
  }
  return 0;
}
