#include <bits/stdc++.h>
using namespace std;
int main() {
  int num;
  while (cin >> num) {
    cout << num << " ";
    for (int i = 1; i < num; i++) cout << i << " ";
    cout << endl;
  }
  return 0;
}
