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