#include <bits/stdc++.h>
#pragma GCC target("avx2")
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
using namespace std;
const int mod = 123457;
const int N = 106 * 106;
const int nax = 1e6 + 6;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  int ones = 0, zeroes = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0')
      zeroes++;
    else
      ones++;
    if (s[i] == '0') {
      int me = (zeroes - 1) % 4;
      cout << 2 << ' ' << me + 1 << '\n';
    } else {
      int me = (ones - 1) % 2;
      int col = 1;
      if (me & 1) col = 3;
      cout << 1 << ' ' << col << '\n';
    }
  }
  return 0;
}
