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