#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  long long s = 0;
  cin >> N;
  long long a[N];
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    s += a[i] - 1;
    cout << 1 - (s % 2) + 1 << "\n";
  }
}
