#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  vector<long long> arr(n);
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  long long c = 0;
  for (int i = 0; i < n; i++) {
    c += arr[i] - 1;
    if (c % 2 == 0)
      cout << 2 << "\n";
    else
      cout << 1 << "\n";
  }
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(nullptr);
  long long T;
  T = 1;
  for (int t = 0; t < T; t++) {
    solve();
  }
  return 0;
}
