#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> A;
  A.resize(n);
  for (int i = 0; i < n; i++) {
    cin >> A[i];
  }
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    sum += A[i] - 1;
    if (sum % 2 == 0)
      cout << 2 << endl;
    else
      cout << 1 << endl;
  }
  return 0;
}
