#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  cout << n << " ";
  for (long long i = 2; i <= n; i++) cout << i - 1 << " ";
  cout << "\n";
}
