#include <bits/stdc++.h>
using namespace std;
const int N = 200000;
const long long MOD = 1e9 + 7;
const double eps = 1e-9;
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 2; i <= n; i++) printf("%d ", i);
  puts("1");
  return 0;
}
