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