#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> seq;
  int n;
  long e;
  cin >> n;
  int first = 0;
  long long s = 0;
  int f = 0;
  for (int i = 0; i < n; i++) {
    cin >> e;
    if (e != 1) {
      s += e;
      f++;
    } else {
      first++;
    }
    if (s > f && (s - f + 1) % 2 == 0) {
      cout << 1 << endl;
    } else {
      cout << 2 << endl;
    }
  }
  return 0;
}
