#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:102400000,102400000")
const int N = 1e5 + 10;
int main() {
  int n;
  long long s = 0, ai;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> ai;
    s += ai - 1;
    if (s & 1)
      cout << 1 << endl;
    else
      cout << 2 << endl;
  }
  return 0;
}
