#include <bits/stdc++.h>
using namespace std;
const int M = 1e9 + 7;
int INF = 1e6;
long long int n, m;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int i, j, t, k, x, y, z, N;
  cin >> n;
  cout << n << " ";
  for (long long int i = 0; i < n - 1; i++) cout << i + 1 << " ";
  return 0;
}
