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