#include <bits/stdc++.h>
using namespace std;
const int oo = 0x7fffffff;
const long long OO = 1000000000000000000LL;
const int base = 1000000007;
const int dx[] = {1, 0, 0, -1};
const int dy[] = {0, 1, -1, 0};
const float eps = 1e-9;
int n, k;
int main() {
  cin >> n;
  cout << n << ' ';
  for (int i = 1; i < n; ++i) cout << i << ' ';
  return 0;
}
