func_code_string: #include <bits/stdc++.h>   using namespace std;   long long n, x, summ;   int main() {     cin >> n;     for (int i = 0; i < n; i++) {       cin >> x;       summ += (x - 1);       if (summ % 2)         cout << 1 << endl;       else         cout << 2 << endl;     }   }   