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