#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  int arr[t];
  for (int i = 0; i < t; i++) {
    cin >> arr[i];
  }
  bool first = 1, second = 0;
  for (int i = 0; i < t; i++) {
    if (first) {
      if (arr[i] % 2 == 0) {
        cout << '1' << endl;
        first = 0, second = 1;
      } else {
        cout << '2' << endl;
      }
    } else if (second) {
      if (arr[i] % 2 == 0) {
        cout << '2' << endl;
        first = 1, second = 0;
      } else
        cout << '1' << endl;
    }
  }
  return 0;
}
