#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long inf = 1e18 + 7;
const int maxn = 1e5 + 10;
const double eps = 1e-7;
int main() {
  std::ios::sync_with_stdio(0);
  ;
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int a = 0, b = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      if (a == 0) {
        cout << 3 << " " << 1 << "\n";
        a++;
      } else {
        cout << 1 << " " << 1 << "\n";
        a = 0;
      }
    } else {
      if (b == 0) {
        cout << 1 << " " << 3 << "\n";
        b++;
      } else {
        cout << 1 << " " << 1 << "\n";
        b = 0;
      }
    }
  }
}
