#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, k;
  cin >> n;
  if (n % 2) {
    cout << 1 << " ";
    k = 2;
  } else
    k = 1;
  n /= 2;
  for (i = 0; i < n; i++) {
    cout << (k + 1) << " " << k << " ";
    k += 2;
  }
}
