#include <bits/stdc++.h>
using namespace std;
long long int inf = 1e9 + 7, zero, one;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string second;
  cin >> second;
  for (long long int i = 0; i < second.size(); ++i)
    cout << ((second[i] == '0') ? (zero++ & 1 ? "1 4" : "3 4")
                                : (one++ & 1 ? "1 3" : "1 1"))
         << "\n";
  return 0;
}
