#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 23;
const int MOD = 1e9 + 9;
const int MAXN = 1e5 + 100;
const double PI = 2 * asin(1);
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  stringstream ss;
  for (int i = 1; i < n; ++i) {
    ss << i + 1 << " ";
  }
  ss << 1 << "\n";
  cout << ss.str();
  return 0;
}
