#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  long long int a[n], i;
  int win = 0;
  for (i = 0; i < n; i++) {
    scanf("%I64d", &a[i]);
    if (win == 0) {
      if (a[i] % 2 == 0)
        win = 1;
      else
        win = 2;
    } else {
      if (win == 1) {
        if (a[i] % 2 == 0)
          win = 2;
        else
          win = 1;
      } else {
        if (a[i] % 2 == 0)
          win = 1;
        else
          win = 2;
      }
    }
    printf("%d\n", win);
  }
}
