#include <bits/stdc++.h>
void debug() {
  freopen("in.txt", "r", stdin);
  freopen("out.txt", "w", stdout);
}
int dx[]{1, -1, 0, 0};
int dy[]{0, 0, 1, -1};
using namespace std;
int main() {
  int n;
  cin >> n;
  long long sum = 0;
  while (n--) {
    int x;
    cin >> x;
    sum += (x - 1);
    if (sum % 2 == 0)
      puts("2");
    else
      puts("1");
  }
}
