#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a, num, res;
  while (cin >> n) {
    num = 0;
    for (int i = 0; i < n; i++) {
      cin >> a;
      if (a % 2 == 0) {
        num++;
      }
      if (num % 2 == 1) {
        res = 1;
      } else {
        res = 2;
      }
      if (i == 0) {
        cout << res;
      } else {
        cout << " " << res;
      }
    }
    cout << endl;
  }
  return 0;
}
