#include <bits/stdc++.h>
using namespace std;
string s;
bool ok[5][5];
int main() {
  memset(ok, 1, sizeof(ok));
  cin >> s;
  for (auto ch : s) {
    if (ch == '0') {
      if (ok[1][4]) {
        ok[3][4] ? (ok[1][4] = false) : (ok[3][4] = true);
        cout << "1 4" << '\n';
      } else {
        assert(ok[3][4]);
        ok[1][4] ? (ok[3][4] = false) : (ok[1][4] = true);
        cout << "3 4" << '\n';
      }
    } else {
      for (int(i) = (1); (i) <= (4); (i)++)
        if (ok[i][1]) {
          ok[i][1] = false;
          cout << i << " 1" << '\n';
          break;
        }
      bool flag = true;
      for (int(i) = (1); (i) <= (4); (i)++)
        if (ok[i][1]) {
          flag = false;
          break;
        }
      if (flag)
        for (int(i) = (1); (i) <= (4); (i)++) ok[i][1] = true;
    }
  }
}
