#include <bits/stdc++.h>
using namespace std;
int main() {
  bool occu[4][4];
  for (int i = 0; i < 4; i++)
    for (int j = 0; j < 4; j++) occu[i][j] = false;
  string s;
  cin >> s;
  int ss = s.size();
  int v = 0;
  int h = 0;
  for (int i = 0; i < ss; i++) {
    if (v % 2 == 0 && s[i] == 48) {
      cout << "1 1" << endl;
      v++;
    } else if (v % 2 && s[i] == 48) {
      cout << "3 1" << endl;
      v++;
    } else if (h % 4 == 0 && s[i] == 49) {
      cout << "1 3" << endl;
      h++;
    } else if (h % 4 == 1 && s[i] == 49) {
      cout << "2 3" << endl;
      h++;
    } else if (h % 4 == 2 && s[i] == 49) {
      cout << "3 3" << endl;
      h++;
    } else if (h % 4 == 3 && s[i] == 49) {
      cout << "4 3" << endl;
      h++;
    }
  }
}
