#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/stack:16000000")
#pragma warning(disable : 4996)
const int inf = 1 << 25;
const double eps = 1e-9;
int main() {
  int n;
  cin >> n;
  for (int i = (2); i < (n + 1); ++i) cout << i << " ";
  cout << 1 << endl;
  return 0;
}
