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