#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  long long n;
  cin >> n;
  long long tmp, st;
  cin >> tmp;
  if (tmp % 2)
    st = 2;
  else
    st = 1;
  cout << st << endl;
  for (int i = 0; i < n - 1; i++) {
    cin >> tmp;
    if (tmp % 2 == 1) {
      cout << st << endl;
    } else {
      if (st == 1)
        st++;
      else
        st--;
      cout << st << endl;
    }
  }
}
