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