#include <bits/stdc++.h>
using namespace std;
vector<long long> v1;
int main() {
  ios_base::sync_with_stdio(false);
  long long n;
  cin >> n;
  if (n == 1)
    cout << 1;
  else {
    cout << n << " ";
    for (int i = 1; i < n; ++i) cout << i << " ";
  }
}
