#include <bits/stdc++.h>
int main() {
  int n, a = 0, b;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &b);
    if (b % 2 == 0) a++;
    if (a % 2 == 0)
      printf("2\n");
    else
      printf("1\n");
  }
  return 0;
}
