#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << 1;
    return 0;
  }
  if (n == 2) {
    cout << 2 << " " << 1;
    return 0;
  }
  if (n == 3) {
    cout << 3 << " " << 1 << " " << 2;
    return 0;
  }
  cout << n << " ";
  int i = 0;
  for (i = 0; i < n - 2; i++) cout << i + 1 << " ";
  cout << i + 1;
  return 0;
}
