func_code_string: #include <bits/stdc++.h>   using namespace std;   inline int read() {     int x = 0;     bool flag = 0;     int ch = getchar();     while ( 0  > ch || ch >  9 ) {       if (ch ==  - ) flag = 1;       ch = getchar();     }     while ( 0  <= ch && ch <=  9 ) {       x = (x << 1) + (x << 3) + (ch ^ 48);       ch = getchar();     }     return flag ? -x : x;   }   const int maxn = 1e5 + 10;   int n, out[maxn];   bool vis[maxn];   int main() {     n = read();     if (n % 2)       printf( -1 );     else {       for (register int i = n; i >= 1; i--) {         if (vis[(out[i + 1] + n) / 2]) {           if (vis[out[i + 1] / 2]) {             printf( -1 );             return 0;           } else {             vis[out[i + 1] / 2] = 1;             out[i] = out[i + 1] / 2;           }         } else {           vis[(out[i + 1] + n) / 2] = 1;           out[i] = (out[i + 1] + n) / 2;         }       }       for (register int i = 1; i <= n + 1; i++) printf( %d  , out[i]);     }     return 0;   }   