#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 5;
const int INF = 0x3f3f3f3f;
const long long llINF = 0x3f3f3f3f3f3f3f3f;
const int mod = 998244353;
long long read() {
  long long x = 0, w = 1;
  char ch = 0;
  while (!isdigit(ch)) {
    if (ch == '-') w = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = x * 10 + (ch - '0');
    ch = getchar();
  }
  return x * w;
}
int main() {
  int n = read();
  long long sum = 0, a;
  while (n--) {
    a = read();
    sum += a - 1;
    if (sum & 1)
      puts("1");
    else
      puts("2");
  }
  return 0;
}
