#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000020;
const int maxm = 1000020;
const int MOd = 998244353;
void solve() {
  string s;
  cin >> s;
  int c = 0, c1 = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      if (!c)
        printf("1 1\n");
      else
        printf("3 1\n");
      c ^= 1;
    } else {
      if (!c1)
        printf("4 3\n");
      else
        printf("4 1\n");
      c1 ^= 1;
    }
  }
}
int main() {
  int n = 1;
  while (n--) solve();
  return 0;
}
