#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  bool first = false, second = false;
  cin >> a;
  while (a--) {
    int x;
    cin >> x;
    if (!first && !second) {
      if (x % 2 == 0) {
        cout << "1" << endl;
        first = true;
        second = false;
      } else {
        cout << "2" << endl;
        second = true;
        first = false;
      }
    } else if (first && !second) {
      if (x % 2 == 1) {
        cout << "1" << endl;
      } else {
        cout << "2" << endl;
        second = true;
        first = false;
      }
    } else if (second && !first) {
      if (x % 2 == 1) {
        cout << "2" << endl;
      } else {
        cout << "1" << endl;
        first = true;
        second = false;
      }
    }
  }
}
