#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    if (i == 0)
      cout << n << " ";
    else
      cout << i << " ";
  }
}
int main() {
  solve();
  return 0;
}
