#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, a, moves = 0;
  cin >> n;
  while (n--) {
    cin >> a;
    moves += a - 1;
    moves %= 2;
    cout << 2 - moves << '\n';
  }
  return 0;
}
