#include <bits/stdc++.h>
using namespace std;
int main() {
  int arr[4][4];
  memset(arr, 0, sizeof(arr));
  string str;
  cin >> str;
  int len = str.length();
  for (int i = 0; i < len; i++) {
    if (str[i] == '0') {
      if (arr[0][2] == 0) {
        arr[0][2] = 1;
        cout << "3 1" << endl;
      } else {
        arr[0][2] = 0;
        cout << "1 1" << endl;
      }
    } else {
      if (arr[2][0] == 0) {
        arr[2][0] = 1;
        cout << "1 3" << endl;
      } else {
        arr[2][0] = 0;
        cout << "1 1" << endl;
      }
    }
  }
  return 0;
}
