#include <bits/stdc++.h>
using namespace std;
bool prime(long long n) {
  for (long long i = 2; i <= sqrt(n); i++) {
    if (n % i == 0) {
      return false;
    }
  }
  return true;
}
void solve() {
  string s;
  cin >> s;
  long long n = s.size();
  long long a = 1, b = 1, c = 1, d = 2;
  for (long long i = 0; i < n; i++) {
    if (s[i] == '0') {
      cout << a << " " << b << endl;
      if (a == 3)
        a = 1;
      else
        a += 2;
    } else {
      cout << c << " " << d << endl;
      if (c == 4)
        c = 1;
      else
        c++;
    }
  }
}
int main() { solve(); }
