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