func_code_string: #include <bits/stdc++.h>   using namespace std;   int a[100006];   int main() {     int n;     while (scanf( %d , &n) != EOF) {       if (n == 1)         puts( 1 );       else if (n == 2)         puts( -1 );       else {         int delta = n;         for (int i = 1; i <= n && delta > 0; i++) {           if (i == 1)             a[1] = 2;           else if (i & 1) {             a[i] = a[i - 1] - delta;           } else             a[i] = a[i - 1] + delta;           if (delta == 3)             delta = 2;           else             delta -= 2;         }         delta = n;         int flag = 0;         for (int i = n; i >= 1 && delta > 0; i--) {           if (i == n)             a[i] = n - 1;           else if (flag == 0) {             a[i] = a[i + 1] + delta;           } else             a[i] = a[i + 1] - delta;           if (delta == 3)             delta = 2;           else             delta -= 2;           flag ^= 1;         }         flag = 1;         for (int i = 1; i <= n; i++) {           if (a[a[i]] != n - i + 1) {             flag = 0;             break;           }         }         if (flag == 0) {           puts( -1 );           continue;         }         for (int i = 1; i <= n; i++) printf(i == 1 ?  %d  :   %d , a[i]);         puts(  );       }     }     return 0;   }   