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