#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int ans = 2;
  int temp;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> temp;
    if (ans == 2) {
      if (temp % 2 == 0)
        ans = 1;
      else
        ans = 2;
    } else {
      if (temp % 2 == 0)
        ans = 2;
      else
        ans = 1;
    }
    cout << ans << endl;
  }
}
