#include <bits/stdc++.h>
using namespace std;
const long long int inf = 9e18;
const long double pi = 2 * acos(0.0);
int main() {
  long long int n;
  cin >> n;
  for (long long int i = 1; i < n; ++i) cout << i + 1 << " ";
  cout << 1 << "\n";
  return 0;
}
