#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const long long mod = (long long)1e18;
void solve() {
  string s;
  cin >> s;
  bool valid = false, valid2 = false;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      if (!valid) {
        cout << 1 << " " << 1 << '\n';
        valid = true;
      } else {
        cout << 3 << " " << 1 << '\n';
        valid = false;
      }
    } else {
      if (!valid2) {
        cout << 4 << " " << 3 << '\n';
        valid2 = true;
      } else {
        cout << 4 << " " << 1 << '\n';
        valid2 = false;
      }
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  int t = 1;
  while (t--) solve();
}
