#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, flag, m;
  while (~scanf("%d", &n)) {
    flag = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &m);
      if (m % 2 == 0) {
        if (flag == 0) {
          flag = 1;
          printf("1\n");
          continue;
        } else {
          flag = 0;
          printf("2\n");
          continue;
        }
      } else {
        if (flag == 0) {
          flag = 0;
          printf("2\n");
          continue;
        } else {
          flag = 1;
          printf("1\n");
          continue;
        }
      }
    }
  }
}
