#include <bits/stdc++.h>
using namespace std;
int a[2000];
int main() {
  int n;
  scanf("%d", &n);
  int p = 1;
  for (int i = 2; i <= n; ++i) a[i] = p++;
  a[1] = p++;
  for (int i = 1; i < n; ++i) printf("%d ", a[i]);
  printf("%d\n", a[n]);
  return 0;
}
