#include <bits/stdc++.h>
using namespace std;
int a[100005], num[100005];
int main() {
  int n;
  scanf("%d", &n);
  memset(num, 0, sizeof(num));
  num[0] = 0;
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
    if (a[i] % 2 == 0)
      num[i] = num[i - 1] + 1;
    else
      num[i] = num[i - 1];
  }
  for (int i = 1; i <= n; i++) {
    if (num[i] % 2) {
      printf("1\n");
    } else
      printf("2\n");
  }
}
