#include <bits/stdc++.h>
using namespace std;
long long int n, a[100001], s[100001], ans[100001];
int main() {
  cin >> n;
  cin >> a[1];
  s[1] = a[1];
  for (int i = 2; i <= n; i++) {
    cin >> a[i];
    s[i] = a[i] + s[i - 1];
  }
  for (int i = 1; i <= n; i++) {
    ans[i] = (s[i] - i + 1) % 2 + 1;
  }
  for (int i = 1; i <= n; i++) {
    cout << ans[i] << endl;
  }
}
