#include <bits/stdc++.h>
using namespace std;
long long int power(long long int x, long long int y, long long int p) {
  long long int r = 1;
  x = x % p;
  while (y) {
    if (y & 1) r = r * x % p;
    y = y >> 1;
    x = x * x % p;
  }
  return r;
}
const int M = 40, N = 1e5 + 9;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int l = s.length();
  long long int cth = 0, ctv = 0;
  for (int i = 0; i < l; i++) {
    char c = s[i];
    if (c == '0') {
      if (ctv % 4 == 0)
        cout << "1 1" << '\n';
      else if (ctv % 4 == 1)
        cout << "1 2" << '\n';
      else if (ctv % 4 == 2)
        cout << "1 3" << '\n';
      else if (ctv % 4 == 3)
        cout << "1 4" << '\n';
      ctv++;
      continue;
    }
    if (cth % 4 == 0)
      cout << "3 1" << '\n';
    else if (cth % 4 == 1)
      cout << "3 3" << '\n';
    else if (cth % 4 == 2)
      cout << "4 1" << '\n';
    else if (cth % 4 == 3)
      cout << "4 3" << '\n';
    cth++;
  }
}
