func_code_string: #include <bits/stdc++.h>   using namespace std;   #pragma comment(linker,  /STACK:102400000,102400000 )   inline void read(int &x) {     x = 0;     char ch = getchar();     while (ch <  0 ) ch = getchar();     while (ch >=  0 ) {       x = x * 10 + ch - 48;       ch = getchar();     }   }   int a[100010], ans;   bool f[100010];   int main() {     int n;     scanf( %d , &n);     if (n == 1)       puts( 1 );     else if (n == 2)       puts( -1 );     else if (n % 4 > 1)       puts( -1 );     else {       if (n & 1) a[n / 2 + 1] = n / 2 + 1;       for (int i = 1; i <= n / 2; ++i) {         if (!a[i]) {           a[i] = i + 1;           a[i + 1] = n + 1 - i;           a[n + 1 - i] = n - i;           a[n - i] = i;         }       }       for (int i = 1; i <= n; ++i) printf( %d%c , a[i], (i == n) ?   n  :    );     }     return 0;   }   