#include <bits/stdc++.h>
using namespace std;
long long int t, n, k;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  cout << n << " ";
  for (long long int i = 0; i < n - 1; i++) cout << i + 1 << " ";
  return 0;
}
