#include <bits/stdc++.h>
const long long int mod = 1000000007;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  long long int n, i, cnt0 = 0, cnt1 = 0;
  cin >> s;
  n = s.size();
  for (i = 0; i < n; i++) {
    if (s[i] == '0') {
      cnt0++;
      if (cnt0 % 2 == 0)
        cout << 1 << " " << 1;
      else
        cout << 3 << " " << 1;
    } else {
      cnt1++;
      if (cnt1 % 2 == 0)
        cout << 1 << " " << 1;
      else
        cout << 1 << " " << 3;
    }
    cout << "\n";
  }
  return 0;
}
