#include <bits/stdc++.h>
using namespace std;
const int Nmax = 100000 + 25;
long long data[Nmax];
int n;
long long num;
int main() {
  memset(data, 0, sizeof(data));
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> data[i];
    data[i] = data[i] + data[i - 1] - 1;
    data[i] = data[i] % 2;
    if (data[i] % 2 == 0)
      cout << "2" << endl;
    else
      cout << "1" << endl;
  }
  return 0;
}
