#include <bits/stdc++.h>
using namespace std;
int main() {
  char str[1005];
  cin >> str;
  int cnt1 = 0, cnt2 = 0;
  for (int i = 0; i < (int)strlen(str); i++) {
    if (str[i] == '0') {
      if (cnt1 == 0) {
        cout << "1 1" << endl;
        cnt1++;
      } else {
        cout << "3 1" << endl;
        cnt1--;
      }
    } else {
      if (cnt2 == 0) {
        cout << "4 3" << endl;
        cnt2++;
      } else {
        cout << "4 1" << endl;
        cnt2--;
      }
    }
  }
  return 0;
}
