#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, s = 0, p = 0, x;
  scanf("%d", &n);
  for (i = 1; i <= n; i++) {
    scanf("%d", &x);
    if (x != 1) {
      p++;
      s = s + x;
      if (p % 2 == 1) {
        if (s % 2 == 0)
          printf("1\n");
        else
          printf("2\n");
      } else {
        if (s % 2 == 0)
          printf("2\n");
        else
          printf("1\n");
      }
    } else if (p == 0)
      printf("2\n");
    else {
      if (p % 2 == 1) {
        if (s % 2 == 0)
          printf("1\n");
        else
          printf("2\n");
      } else {
        if (s % 2 == 0)
          printf("2\n");
        else
          printf("1\n");
      }
    }
  }
  return 0;
}
