#include <bits/stdc++.h>
using namespace std;
int a[1010];
void recur(int x) {
  if (x == 1) return;
  swap(a[x - 1], a[x]);
  recur(x - 1);
}
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) a[i] = i;
  recur(n);
  for (int i = 1; i <= n; i++) cout << a[i] << " ";
  return 0;
}
