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