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