#include <bits/stdc++.h>
using namespace std;
int mult(int x, int y) {
  long long int ans, x1 = (long long int)x, y1 = (long long int)y;
  ans = (x1 * y1) % 1000000007;
  return (int)ans;
}
int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }
int lcm(int a, int b) { return a * (b / gcd(a, b)); }
int pow1(int a, int b) {
  int ans = 1;
  while (b > 0) {
    if (b & 1) ans = mult(ans, a);
    a = mult(a, a);
    b >>= 1;
  }
  return ans;
}
int main() {
  ios_base::sync_with_stdio(0);
  ;
  int n, i;
  long long int a[100010];
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  long long int total = 0;
  for (i = 0; i < n; i++) {
    total += a[i] - 1;
    if (total % 2 == 0)
      cout << "2\n";
    else
      cout << "1\n";
  }
  return 0;
}
