#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
vector<int>odd;
vector<int>even;
for(int i=0; i<n; i++){
if((i+1)%2 == 0)
even.push_back(i+1);
else
odd.push_back(i+1);
}
int ans=0;
for(int i=0; i<n; i++){
if(abs(even[i+1]-even[i])==1 || abs(odd[i+1]-odd[i])==1){
ans = 1;
break;
}
}
if(ans == 1)
cout <<"NO SOLUTION" << endl;
else if(ans == 0){
for(int i:even)cout << i << " ";
for(int i:odd)cout << i << " ";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKCWNpbiA+PiBuOwoJdmVjdG9yPGludD5vZGQ7Cgl2ZWN0b3I8aW50PmV2ZW47CgkKCWZvcihpbnQgaT0wOyBpPG47IGkrKyl7CgkJaWYoKGkrMSklMiA9PSAwKQoJCQlldmVuLnB1c2hfYmFjayhpKzEpOwoJCWVsc2UKCQkJb2RkLnB1c2hfYmFjayhpKzEpOwoJfQoJaW50IGFucz0wOwoJZm9yKGludCBpPTA7IGk8bjsgaSsrKXsKCQlpZihhYnMoZXZlbltpKzFdLWV2ZW5baV0pPT0xIHx8IGFicyhvZGRbaSsxXS1vZGRbaV0pPT0xKXsKCQkJYW5zID0gMTsKCQkJYnJlYWs7CgkJfQoJfQoJaWYoYW5zID09IDEpCgkJY291dCA8PCJOTyBTT0xVVElPTiIgPDwgZW5kbDsKCWVsc2UgaWYoYW5zID09IDApewoJCWZvcihpbnQgaTpldmVuKWNvdXQgPDwgaSA8PCAiICI7CgkJZm9yKGludCBpOm9kZCljb3V0IDw8IGkgPDwgIiAiOwoJfQoJCglyZXR1cm4gMDsKfQ==