#include <bits/stdc++.h>
using namespace std;
int a[10000];
int n;
void slon() {
  swap(a[n], a[n - 1]);
  n = n - 1;
}
int main() {
  int x;
  cin >> n;
  x = n;
  for (int i = 1; i <= n; i++) {
    a[i] = i;
  }
  for (;;) {
    if (n == 1) {
      break;
    } else {
      slon();
    }
  }
  for (int i = 1; i <= x; i++) {
    cout << a[i] << " ";
  }
  return 0;
}
