#include <bits/stdc++.h>
using namespace std;
int main() {
  {
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
  };
  string s;
  cin >> s;
  int n = s.size();
  int boo1 = 0, boo2 = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == '0') {
      if (boo1 == 0) {
        cout << "1 1" << endl;
        boo1 ^= 1;
      } else {
        cout << "3 1" << endl;
        boo1 ^= 1;
      }
    } else {
      if (boo2 == 0)
        cout << "3 3" << endl;
      else
        cout << "3 1" << endl;
      boo2 ^= 1;
    }
  }
  return 0;
}
