#include <bits/stdc++.h>
using namespace std;
double pi = 3.1415926535898;
const int M = 1e9 + 7;
int main() {
  int n, x, c = 0;
  scanf("%d", &n);
  for (int i = 0; i < int(n); i++) {
    scanf("%d", &x);
    (c = c + (x - 1)) % 2;
    if (c & 1) {
      cout << "1\n";
    } else
      cout << "2\n";
  }
}
