#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  int n = s.size();
  bool a = false, b = false;
  for (int i = 0; i < n; i++) {
    if (s[i] == '0') {
      if (a)
        cout << "3 4\n";
      else
        cout << "1 4\n";
      a = 1 - a;
    } else {
      if (b)
        cout << "4 3\n";
      else
        cout << "4 1\n";
      b = 1 - b;
    }
  }
}
