#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const double PI = acos(-1.0);
int main() {
  ios_base::sync_with_stdio(false);
  int col = 0;
  int lin = 1;
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      if (col == 1) {
        cout << "3 1" << '\n';
        col = 0;
      } else {
        cout << "1 1" << '\n';
        col++;
      }
    } else {
      cout << lin << " " << 2 << '\n';
      lin++;
      if (lin == 5) lin = 1;
    }
  }
  return 0;
}
