#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, s = 0, i;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> x;
    s = (s + x - 1) % 2;
    if (s == 1)
      cout << 1 << endl;
    else
      cout << 2 << endl;
  }
  return 0;
}
