#include <bits/stdc++.h>
using namespace std;
template <class T>
T _max(T x, T y) {
  return x > y ? x : y;
}
template <class T>
T _min(T x, T y) {
  return x < y ? x : y;
}
template <class T>
void _swap(T &x, T &y) {
  T z = x;
  x = y;
  y = z;
}
template <class T>
T GCD(T a, T b) {
  for (T t; b; t = a % b, a = b, b = t)
    ;
  return a;
}
template <class T>
T LCM(T a, T b) {
  return a / GCD(a, b) * b;
}
const double pi = acos(-1.0);
const int M = 105;
const long long N = 1000000;
int ts, cas = 0;
int n, m;
void run() {
  int i, j;
  printf("%d", n);
  for (i = 2; i <= n; i++) printf(" %d", i - 1);
  puts("");
}
void preSof() {}
int main() {
  preSof();
  while (~scanf("%d", &n)) run();
  return 0;
}
