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