#include <bits/stdc++.h>
using namespace std;
long long n, c, x;
int main() {
  cin >> n;
  while (n--) {
    cin >> x;
    c += x - 1;
    if (c % 2)
      cout << "1\n";
    else
      cout << "2\n";
  }
}
