#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, a[100003], i, j, c = 1, cc;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
  }
  for (i = 1; i <= n; i++) {
    if (a[i] % 2 == 1) {
      if (c == 1) {
        cout << 2 << endl;
      } else {
        cout << 1 << endl;
        c = 2;
      }
    } else {
      if (c == 1) {
        cout << 1 << endl;
        c = 2;
      } else {
        cout << 2 << endl;
        c = 1;
      }
    }
  }
  return 0;
}
