#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
const int mod = 998244353;
stack<char> s;
char a[1010];
int b[10][10];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> a;
  int len = strlen(a);
  for (int i = 0; i < len; i++) {
    if (a[i] == '0') {
      if (b[1][1] == 0) {
        b[1][1] = 1;
        cout << 1 << ' ' << 1 << endl;
      } else {
        b[1][1] = 0;
        cout << 3 << ' ' << 1 << endl;
      }
    } else if (a[i] == '1') {
      if (b[4][3] == 0) {
        b[4][3] = 1;
        cout << 4 << ' ' << 3 << endl;
      } else {
        b[4][3] = 0;
        cout << 4 << ' ' << 1 << endl;
      }
    }
  }
  return 0;
}
