#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int main() {
  string s;
  int c0 = 1, c1 = 1;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      cout << "1 " << c0 << "\n";
      if (c0 == 4) {
        c0 = 1;
      } else {
        c0++;
      }
    } else if (s[i] == '1') {
      cout << "3 " << c1 << "\n";
      if (c1 == 3) {
        c1 = 1;
      } else if (c1 == 1) {
        c1 = 3;
      }
    }
  }
  return 0;
}
