#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 2;
string str;
int cntZero;
int cntOne;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> str;
  for (int i = 0; i < (int)str.size(); i++) {
    if (str[i] == '0') {
      if (cntZero == 0) cout << "1 1";
      if (cntZero == 1) cout << "1 2";
      if (cntZero == 2) cout << "1 3";
      if (cntZero == 3) cout << "1 4";
      cntZero = (cntZero + 1) % 4;
    } else {
      if (cntOne == 0) cout << "3 1";
      if (cntOne == 1) cout << "3 3";
      cntOne = (cntOne + 1) % 2;
    }
    cout << "\n";
  }
}
