#include <bits/stdc++.h>
int main() {
  std::string s;
  std::cin >> s;
  bool up = false;
  bool first = false, second = false, third = false;
  std::vector<std::pair<int, int>> result;
  for (char c : s) {
    if (c == '0') {
      if (up == false) {
        result.push_back(std::make_pair(1, 1));
        up = true;
      } else {
        result.push_back(std::make_pair(3, 1));
        up = false;
      }
    } else {
      if (first == false) {
        result.push_back(std::make_pair(1, 2));
        first = true;
      } else if (second == false) {
        result.push_back(std::make_pair(2, 2));
        second = true;
      } else if (third == false) {
        result.push_back(std::make_pair(3, 2));
        third = true;
      } else {
        result.push_back(std::make_pair(4, 2));
        first = false;
        second = false;
        third = false;
      }
    }
  }
  for (auto p : result) {
    std::cout << p.first << " " << p.second << "\n";
  }
  return 0;
}
