#include <bits/stdc++.h>
using namespace std;
template <typename T>
T abs(T a) {
  return a < 0 ? -a : a;
}
template <typename T>
T sqr(T a) {
  return a * a;
}
const int INF = (int)1e9;
const long double EPS = 1e-9;
const long double PI = 3.1415926535897932384626433832795;
int main() {
  int n;
  cin >> n;
  cout << n << " ";
  for (int i = 1; i < n; i++) cout << i << " ";
  cout << endl;
  return 0;
}
