#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse4")
using namespace std;
inline long long in() {
  long long x;
  scanf("%lld", &x);
  return x;
}
int32_t main() {
  string s;
  cin >> s;
  pair<long long, long long> o = {1, 3}, o1 = {1, 1}, z1 = {1, 1}, z = {3, 1};
  for (auto i : s) {
    long long ct = i - '0';
    if (ct == 0) {
      cout << z.first << " " << z.second << "\n";
      swap(z, z1);
    } else {
      cout << o.first << " " << o.second << "\n";
      swap(o, o1);
    }
  }
}
