#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  string s;
  cin >> s;
  long long rv = 1, cv = 0, rh = 3, ch = 3;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      cv++;
      if (cv > 4) cv -= 4;
      cout << 1 << " " << cv << "\n";
    } else {
      ch == 1 ? ch = 3 : ch = 1;
      cout << 3 << " " << ch << "\n";
    }
  }
  return 0;
}
