#include <bits/stdc++.h>
using namespace std;
long long myAbs(long long x) {
  if (x > 0) return x;
  return -x;
}
int main() {
  int n;
  long long sum = 0;
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    int x;
    cin >> x;
    sum += x;
    int rez = 0;
    if (i % 2)
      rez = (sum % 2) + 1;
    else
      rez = (sum % 2) - 2;
    cout << myAbs(rez) << "\n";
  }
  return 0;
}
