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