#include <bits/stdc++.h>
using namespace std;
const int dx[] = {1, 0, -1, 0};
const int dy[] = {0, 1, 0, -1};
const long long N = 1e5 + 5;
const long long MOD = (1e9 + 7);
const long long MOD1 = 998244353;
const double PI = 3.14159265;
const int INF32 = 2e9;
const long long INF64 = 2e18;
int k;
pair<int, int> arr[4] = {{1, 1}, {1, 2}, {1, 3}, {1, 4}};
bool boo;
string s;
void KEK() {
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      printf("%d %d\n", arr[k].first, arr[k].second);
      k++;
      k %= 4;
    } else {
      if (boo)
        printf("3 3\n");
      else
        printf("3 1\n");
      boo ^= 1;
    }
  }
}
int main() { KEK(); }
