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