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