#include<bits/stdc++.h>
using namespace std;
#define el "\n"
#define ll long long
#define ull unsigned long long
#define se second
#define fi first
#define be begin()
#define en end()
#define Faster cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
int main()
{
Faster;
int n; cin >> n;
if(n % 2 || n == 2)
{
cout << "No";
return 0;
}
else
{
int sum = 0;
for(int i = 2; i <= n; i += 2)
{
cout << i << " ";
sum += i;
}
for(int i = 1; i < n - 1; i+= 2)
{
cout << i << " ";
sum -= i;
}
cout << sum;
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBlbCAiXG4iCiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgdWxsIHVuc2lnbmVkIGxvbmcgbG9uZwojZGVmaW5lIHNlIHNlY29uZAojZGVmaW5lIGZpIGZpcnN0CiNkZWZpbmUgYmUgYmVnaW4oKQojZGVmaW5lIGVuIGVuZCgpCiNkZWZpbmUgRmFzdGVyIGNpbi50aWUoMCk7IGNvdXQudGllKDApOyBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKDApOwoKaW50IG1haW4oKQp7CiAgICBGYXN0ZXI7CiAgICBpbnQgbjsgY2luID4+IG47CiAgICBpZihuICUgMiB8fCBuID09IDIpCiAgICB7CiAgICAgICAgY291dCA8PCAiTm8iOwogICAgICAgIHJldHVybiAwOwogICAgfQogICAgZWxzZQogICAgewogICAgICAgIGludCBzdW0gPSAwOwogICAgICAgIGZvcihpbnQgaSA9IDI7IGkgPD0gbjsgaSArPSAyKQogICAgICAgIHsKICAgICAgICAgICAgY291dCA8PCBpIDw8ICIgIjsKICAgICAgICAgICAgc3VtICs9IGk7CiAgICAgICAgfQogICAgICAgIGZvcihpbnQgaSA9IDE7IGkgPCBuIC0gMTsgaSs9IDIpCiAgICAgICAgewogICAgICAgICAgICBjb3V0IDw8IGkgPDwgIiAiOwogICAgICAgICAgICBzdW0gLT0gaTsKICAgICAgICB9CiAgICAgICAgY291dCA8PCBzdW07CiAgICB9CiAgICByZXR1cm4gMDsKfQo=