#include <bits/stdc++.h>
int a[100005];
int main() {
  int n;
  while (scanf("%d", &n) != EOF) {
    int i, j;
    for (i = 0; i < n; i++) {
      scanf("%d", &a[i]);
      if (i) a[i] = a[i] + a[i - 1];
      a[i]--;
    }
    for (i = 0; i < n; i++) {
      printf("%d\n", a[i] % 2 ? 1 : 2);
    }
  }
}
