#include <bits/stdc++.h>
using namespace std;
inline long long pw(long long a, long long b) {
  return (b) ? (pw((a) * (a), (b) >> 1) * ((b)&1 ? (a) : 1)) : 1;
}
const int MAXN = 1e5 + 5;
const long long INF = 1e10;
const long long MOD = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  cout << n << " ";
  for (int i = 1; i < n; i++) cout << i << " ";
}
