#include <bits/stdc++.h>
std::string s;
int main(void) {
  std::cin >> s;
  int vertical_cnt = 0;
  int horizontal_cnt = 0;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == '0') {
      std::cout << 1 << " " << vertical_cnt + 1 << std::endl;
      vertical_cnt += 1;
      vertical_cnt %= 4;
    } else {
      std::cout << 4 << " " << horizontal_cnt * 2 + 1 << std::endl;
      horizontal_cnt += 1;
      horizontal_cnt %= 2;
    }
  }
  return 0;
}
