#include <bits/stdc++.h>
using namespace ::std;
int main() {
  int n;
  cin >> n;
  bool res = 1;
  for (int cur, i = 0; i < n; i++) {
    cin >> cur;
    if (!(cur % 2)) res = !res;
    cout << res + 1 << endl;
  }
}
