#include <bits/stdc++.h>
using namespace std;
void solve(string a) {
  int n = a.length();
  bool verticalPresent = false;
  bool horizontalPresent = false;
  for (int i = 0; i < n; i++) {
    if (a[i] == '0') {
      if (verticalPresent) {
        printf("3 1\n");
        verticalPresent = false;
      } else {
        printf("1 1\n");
        verticalPresent = true;
      }
    } else if (a[i] == '1') {
      if (horizontalPresent) {
        printf("4 1\n");
        horizontalPresent = false;
      } else {
        printf("4 3\n");
        horizontalPresent = true;
      }
    }
  }
}
int main() {
  string str;
  cin >> str;
  solve(str);
  return 0;
}
