#include <bits/stdc++.h>
using namespace std;
bool f;
long long maxx = -999999999999, minn = 999999999999;
string toBin(int n) {
  string s;
  while (n) {
    s = (n % 2 == 0 ? "0" : "1") + s;
    n /= 2;
  }
  while (s.length() != 8) s = "0" + s;
  return s;
}
int todec(string s, int base) { return strtoull(s.c_str(), NULL, base); }
long long cal(int a) { return (a * (a - 1)) / 2; }
bool odd(int a) {
  if (a % 2 == 0)
    return 0;
  else
    return 1;
}
long long i, j, k;
int main() {
  int n;
  cin >> n;
  int a[n + 10];
  for (i = 0; i < n; i++) cin >> a[i];
  for (i = 0; i < n; i++) {
    k += a[i] - 1;
    if (k % 2 == 0)
      cout << 2 << endl;
    else
      cout << 1 << endl;
  }
  return 0;
}
