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