#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  string s;
  cin >> s;
  int state_v = 0;
  int state_g = 0;
  for (char c : s) {
    if (c == '0') {
      if (state_g == 0) {
        cout << "1 1\n";
        state_g = 1;
        continue;
      }
      if (state_g == 1) {
        cout << "3 1\n";
        state_g = 0;
        continue;
      }
    } else {
      if (state_v == 0) {
        cout << "4 3\n";
        state_v = 1;
        continue;
      }
      if (state_v == 1) {
        cout << "4 1\n";
        state_v = 0;
        continue;
      }
    }
  }
  return 0;
}
