#include <bits/stdc++.h>
using namespace std;
int main() {
  int a = 1, b = 1;
  string str;
  cin >> str;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == '0')
      cout << 1 << " " << a++ << endl;
    else {
      switch (b++) {
        case 1:
          cout << 3 << " " << 1 << endl;
          break;
        case 2:
          cout << 3 << " " << 3 << endl;
          break;
        case 3:
          cout << 4 << " " << 1 << endl;
          break;
        case 4:
          cout << 4 << " " << 3 << endl;
          break;
      }
    }
    if (a > 4) a = 1;
    if (b > 4) b = 1;
  }
  return 0;
}
