#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<long long> pre(n + 1, 0);
  for (int i = 0; i < n; ++i) {
    long long x;
    cin >> x;
    pre[i + 1] = pre[i] + (x - 1);
  }
  for (int i = 1; i <= n; ++i) {
    if (pre[i] % 2 == 0)
      cout << 2 << '\n';
    else
      cout << 1 << '\n';
  }
  return 0;
}
