#include <bits/stdc++.h>
using namespace std;
long long a[4][4];
void solve(long long testcase) {
  string s;
  cin >> s;
  bool lol = 0;
  long long count = 1;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      if (lol)
        cout << "1 1\n";
      else
        cout << "3 1\n";
      lol = !lol;
    } else {
      cout << count << " "
           << "3\n";
      count++;
      if (count == 5) count = 1;
    }
  }
  return;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  for (long long i = 1; i <= t; i++) {
    solve(i);
  }
  return 0;
}
