#include <bits/stdc++.h>
using namespace std;
int n;
int w;
int main() {
  scanf("%d", &n);
  w = 2;
  for (int i = 1; i <= n; i++) {
    int temp;
    scanf("%d", &temp);
    if (temp % 2 == 0 && w == 2)
      w = 1;
    else if (temp % 2 == 0 && w == 1)
      w = 2;
    cout << w << endl;
  }
  return 0;
}
