#include <bits/stdc++.h>
const int MOD = 1e9 + 7;
const int v1 = 1e5 + 5;
const int N = 2e5 + 5;
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  string s;
  cin >> s;
  long long count = 0;
  long long count1 = 0;
  for (long long i = 0; i < s.length(); i++) {
    if (s[i] == '0') {
      if (count == 0) {
        count++;
        cout << "3 1\n";
      } else {
        cout << "1 1\n";
        count = 0;
      }
    } else {
      if (count1 == 0) {
        cout << "1 3\n";
        count1 = 1;
      } else {
        cout << "1 1\n";
        count1 = 0;
      }
    }
  }
}
