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