#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> p(n);
  for (int i = 0; i < n; ++i) p[i] = i + 1;
  if (n > 1) {
    int st = 0;
    if (n & 1) ++st;
    for (int i = st; i < n - 1; ++i) {
      swap(p[i], p[i + 1]);
      ++i;
    }
  }
  for (int i = 0; i < n; ++i) cout << p[i] << ' ';
  return 0;
}
