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