#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int count_0 = 0;
  int count_1 = 0;
  for (int x = 0; x < s.length(); x++) {
    if (s[x] == '0') {
      if (count_0 % 2 == 0) {
        cout << 1 << " " << 1 << endl;
      } else {
        cout << 3 << " " << 1 << endl;
      }
      count_0 += 1;
    } else {
      if (count_1 % 4 == 0) {
        cout << 1 << " " << 2 << endl;
      } else if (count_1 % 4 == 1) {
        cout << 2 << " " << 2 << endl;
      } else if (count_1 % 4 == 2) {
        cout << 3 << " " << 2 << endl;
      } else if (count_1 % 4 == 3) {
        cout << 4 << " " << 2 << endl;
      }
      count_1 += 1;
    }
  }
  return 0;
}
