#include <bits/stdc++.h>
using namespace std;
const int MAX = 100005;
bool parity(int n) { return !(n & 1); }
bool is2(int n) { return n & (n - 1) == 0; }
template <typename T>
T sqr(T a) {
  return a * a;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  bool cntV = 0, cntH = 0;
  for (int i = 0; i < s.length(); ++i)
    if (s[i] == '0') {
      if (cntV == 0)
        cout << 1 << " " << 1;
      else
        cout << 3 << " " << 1;
      cout << endl;
      cntV = !cntV;
    } else {
      if (cntH == 0)
        cout << 4 << " " << 3;
      else
        cout << 4 << " " << 1;
      cout << endl;
      cntH = !cntH;
    }
  return 0;
}
