#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5;
int main(int argc, const char* argv[]) {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  long long a[n];
  long long sum[n];
  memset(sum, 0, sizeof(sum));
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  sum[0] = a[0];
  for (long long i = 1; i < n; i++) {
    sum[i] = sum[i - 1] + a[i] - 1;
  }
  for (long long i = 0; i < n; i++) {
    if ((sum[i] % 2) == 0) {
      cout << "1"
           << "\n";
    } else {
      cout << "2"
           << "\n";
    }
  }
  return 0;
}
