func_code_string: #include <bits/stdc++.h>   using namespace std;   const int LEN = 100009;   int n;   int a[LEN];   int ch = 0, nech = 0;   int ans = 0;   int main() {     cin >> n;     for (int i = 0; i < n; i++) cin >> a[i];     for (int i = 0; i < n; i++) {       if (a[i] % 2 == 0)         ch++;       else         nech++;     }     ans = min(ch, nech);     while (nech > 1) {       nech -= 2;       ch++;       ans = max(ans, min(ch, nech));     }     cout << ans;     return 0;   }   