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