#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, e, f, cnt, snt, ans;
string s, m, sum;
int arr[10001];
vector<int> v;
int main() {
  cin >> a;
  if (a == 1) {
    cout << 1;
    return 0;
  }
  cout << a << " ";
  for (int i = 1; i < a; i++) {
    cout << i << " ";
  }
}
