#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    int sum = 0;
    int a[100010];
    for (int i = 0; i < n; i++) {
      int k;
      cin >> k;
      sum += (k - 1);
      sum = sum & 1;
      a[i] = sum;
    }
    for (int i = 0; i < n; i++) {
      if (a[i] == 1) {
        printf("1\n");
      } else {
        printf("2\n");
      }
    }
  }
  return 0;
}
