#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, echo = 0, k;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> k;
    echo += (k - 1);
    if (echo % 2)
      cout << "1" << '\n';
    else
      cout << "2" << '\n';
  }
  return 0;
}
