#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
int main() {
  long long a, n, m, i, j, k, l, t, x, y;
  cin >> n;
  t = 0;
  for (i = 1; i <= n; i++) {
    cin >> a;
    t = t + a - 1;
    if (t % 2 == 0)
      cout << "2\n";
    else
      cout << "1\n";
  }
}
