#include <bits/stdc++.h>
int ma{0};
int a[4][4] = {0};
using namespace std;
string s;
int main() {
  cin >> s;
  bool b{0}, b1{0};
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0' && b == 0) {
      cout << "1 1";
      b = 1;
    } else if (s[i] == '1' && b1 == 0) {
      cout << "4 3";
      b1 = 1;
    } else if (s[i] == '0' && b == 1) {
      cout << "3 1";
      b = 0;
    } else if (s[i] == '1' && b1 == 1) {
      cout << "4 1";
      b1 = 0;
    }
    if (i != s.size() - 1) cout << endl;
  }
  return 0;
}
