#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int n;
void rec(int k) {
  if (n == k)
    return;
  else {
    rec(k + 1);
    int temp = v[k];
    v[k] = v[k + 1];
    v[k + 1] = temp;
  }
}
int main() {
  int i, j, k;
  cin >> n;
  v.push_back(0);
  for (i = 1; i <= n; i++) {
    v.push_back(i);
  }
  rec(1);
  for (i = 1; i <= n; i++) cout << v[i] << " ";
  cout << endl;
  return 0;
}
