#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  long long vc = 0, hc = 0;
  for (long long i = 0; i < s.length(); i++) {
    if (s[i] == '0') {
      vc++;
      if (vc % 4 == 0)
        cout << "1 4" << endl;
      else
        cout << "1 " << vc % 4 << endl;
    } else {
      hc++;
      if (hc & 1)
        cout << "3 1" << endl;
      else
        cout << "3 3" << endl;
    }
  }
  return 0;
}
