#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (~scanf("%d", &n)) {
    long long sum = 0;
    for (int i = 1; i <= n; ++i) {
      long long temp;
      scanf("%I64d", &temp);
      sum += temp - 1;
      if (sum % 2 == 1)
        printf("1\n");
      else
        printf("2\n");
    }
  }
  return 0;
}
