#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const int MOD = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  for (int i = 2; i <= n; i++) cout << i << ' ';
  cout << 1 << endl;
  return 0;
}
