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