#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  bool flag = false, flag2 = false;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '0') {
      if (!flag) {
        flag = true;
        cout << "1 4" << endl;
      } else {
        flag = false;
        cout << "3 4" << endl;
      }
    } else {
      if (!flag2) {
        flag2 = true;
        cout << "4 1" << endl;
      } else {
        flag2 = false;
        cout << "4 3" << endl;
      }
    }
  }
  return 0;
}
