#include <bits/stdc++.h>
int main() {
  int n1, n2, n3 = 1;
  std::cin >> n1;
  for (int i = 0; i < n1; i++) {
    std::cin >> n2;
    if (n2 & 1)
      n3 & 1 ? std::cout << 2 << "\n" : std::cout << 1 << "\n";
    else {
      n3 = !n3;
      n3 & 1 ? std::cout << 2 << "\n" : std::cout << 1 << "\n";
    }
  }
}
