#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  string vert[2] = {"1 4", "3 4"};
  string horz[2] = {"4 1", "4 3"};
  int v = 0, h = 0;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == '0') {
      cout << vert[v % 2];
      v++;
    } else {
      cout << horz[h % 2];
      h++;
    }
    cout << endl;
  }
}
