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