#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 7;
mt19937 rd(chrono ::system_clock ::now().time_since_epoch().count());
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("Ofast")
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  string s;
  cin >> s;
  int c1, c2;
  c1 = c2 = 0;
  for (auto &ch : s) {
    if (ch == '0') {
      if (c1 == 0) {
        c1++;
        cout << "1 1\n";
      } else {
        c1--;
        cout << "3 1\n";
      }
    } else {
      if (c2 == 0) {
        c2++;
        cout << "4 3\n";
      } else {
        c2--;
        cout << "4 1\n";
      }
    }
  }
}
