#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i, j, k, sum = 0, count = 0, ans = 0, x, y, l, r;
  string s;
  cin >> s;
  n = s.length();
  count = 1;
  sum = 1;
  for (i = 0; i < n; i++) {
    if (s[i] == '0') {
      cout << 1 << " " << count;
      count++;
      if (count > 4) count = 1;
    } else {
      cout << 3 << " " << sum;
      sum += 2;
      if (sum > 3) sum = 1;
    }
    cout << endl;
  }
}
