#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; ++i) {
    v[i] = i + 1;
  }
  for (int i = v.size() - 1; i > 0; i -= 2) {
    swap(v[i], v[i - 1]);
  }
  for (int i = 0; i < v.size(); ++i) {
    cout << v[i] << ' ';
  }
  cout << endl;
}
