#include <bits/stdc++.h>
using namespace std;
const int Inf = 1 << 28;
const double Pi = acos(-1.0);
const int Max = 100;
int main() {
  int n, m, sum;
  while (~scanf("%d", &n)) {
    sum = 0;
    for (int i = 1; i <= n; i++) {
      scanf("%d", &m);
      sum += m - 1;
      if (sum & 1)
        printf("1\n");
      else
        printf("2\n");
      sum %= 2;
    }
  }
  return 0;
}
