#include <bits/stdc++.h>
using namespace std;
ostream &operator<<(ostream &a, const vector<long long> &b) {
  for (auto k : b) cout << k << " ";
  return a;
}
const long long INF = 1e18;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  vector<long long> ans;
  long long cur = n - 1;
  while (cur > 0) {
    ans.push_back(cur);
    cur -= 2;
  }
  reverse((ans).begin(), (ans).end());
  cout << ans;
  reverse((ans).begin(), (ans).end());
  cout << ans;
  ans.clear();
  cout << n << " ";
  cur = n - 2;
  while (cur > 0) {
    ans.push_back(cur);
    cur -= 2;
  }
  reverse((ans).begin(), (ans).end());
  cout << ans;
  reverse((ans).begin(), (ans).end());
  cout << n << " " << ans;
}
