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