func_code_string: #include <bits/stdc++.h>   using namespace std;   int a[1505];   int main() {     ios::sync_with_stdio(false), cin.tie(0);     int n;     cin >> n;     for (int i = 1; i <= n; i++) {       cin >> a[i];     }     bool isEven = true;     for (int i = 1; i <= n; i++) {       for (int j = i + 1; j <= n; j++) {         if (a[i] > a[j]) {           isEven ^= 1;         }       }     }     int q;     cin >> q;     for (int qq = 0; qq < q; qq++) {       int l, r;       cin >> l >> r;       int len = r - l + 1;       isEven ^= ((len * (len - 1)) / 2) % 2;       cout << (isEven ?  even  :  odd ) <<   n ;     }     return 0;   }   