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