#include <bits/stdc++.h>   int perm[100010 + 1];   using namespace std;   int main() {     int n;     cin >> n;     int s = 1;     int e = n;     while (e - s > 0) {       perm[s] = s + 1;       perm[s + 1] = e;       perm[e] = e - 1;       perm[e - 1] = s;       s += 2;       e -= 2;     }     if (s == e) perm[s] = s;     if ((n % 4) > 1)       cout << -1;     else       for (int i = 1; i <= n; i++) cout << perm[i] <<    ;   }   