#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000000 + 7;
vector<pair<int, int>> g[108];
int main() {
  string s;
  cin >> s;
  vector<pair<int, int>> v, ans;
  v.push_back({3, 1});
  v.push_back({1, 3});
  int a[2] = {0, 0};
  for (auto it : s) {
    if (a[it - '0'] == 0) {
      ans.push_back(v[it - '0']);
      ++a[it - '0'];
    } else {
      --a[it - '0'];
      ans.push_back({1, 1});
    }
  }
  for (auto it : ans) cout << it.first << " " << it.second << "\n";
}
