#include <bits/stdc++.h>
using namespace std;
void print(vector<long long> v) {
  for (auto x : v) cout << x << " ";
  cout << endl;
}
const int mod = 1000000007;
const int inf = 1e9 + 5;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << 1;
    return 0;
  }
  cout << n << " ";
  int i = 1;
  while (i != n) {
    cout << i << " ";
    ++i;
  }
  return 0;
}
