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