#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long x, sum;
  unsigned long n, i;
  cin >> n;
  sum = 0;
  for (i = 0; i < n; i++) {
    cin >> x;
    sum = (sum + x - 1) % 2;
    if (sum % 2 == 0)
      cout << 2 << '\n';
    else
      cout << 1 << '\n';
  }
}
