#include <bits/stdc++.h>
using namespace std;
const long long INF = 0x7f7f7f7f;
const long long INFL = 0x7f7f7f7f7f7f7f7f;
const long long toinf = 0x7f;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  cout << n << " ";
  for (long long i = 1; i < n; i++) {
    cout << i << " ";
  }
}
