#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  long long n, sum = 0, x;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    sum += x - 1;
    sum % 2 ? cout << "1" << endl : cout << "2" << endl;
  }
  return 0;
}
