#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  string second;
  cin >> second;
  int l = second.size(), x = 0, y = 0;
  for (int i = 0; i < l; i++) {
    if (second[i] == '0' && x == 0) {
      cout << 1 << " " << 1 << "\n";
      x++;
    } else if (second[i] == '1' && y == 0) {
      cout << 4 << " " << 3 << "\n";
      y++;
    } else if (second[i] == '0' && x != 0) {
      cout << 3 << " " << 1 << "\n";
      x--;
    } else if (second[i] == '1' && y != 0) {
      cout << 4 << " " << 1 << "\n";
      y--;
    }
  }
  return 0;
}
