#include <bits/stdc++.h>
using namespace std;
long long n, a[100005], dis[125], vis[125];
set<pair<long long, long long> > edges;
vector<pair<long long, long long> > e;
vector<long long> adj[125];
map<long long, long long> m;
int main() {
  string s;
  cin >> s;
  int v = 0, h = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      v = (v + 1) % 4;
      if (v == 1) cout << 1 << " " << 1 << endl;
      if (v == 2) cout << 1 << " " << 2 << endl;
      if (v == 3) cout << 1 << " " << 3 << endl;
      if (v == 0) cout << 1 << " " << 4 << endl;
    } else {
      h = (h + 1) % 2;
      if (h == 1) cout << 3 << " " << 1 << endl;
      if (h == 0) cout << 3 << " " << 3 << endl;
    }
  }
}
