#include <bits/stdc++.h>
using namespace std;
const int MOD = (int)1e9 + 7;
const long long infint = (long long)1e16;
const long long inf = (long long)1e18;
const int MAXN = 407;
long long n;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 1; i <= n - 1; i++) cout << i + 1 << " ";
  cout << 1;
}
