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