#include <bits/stdc++.h>
using namespace std;
long mod(long int a) { return (a > 0 ? a : (-a)); }
long min(long int a, long int b) { return (a) > (b) ? (b) : (a); }
long max(long int a, long int b) { return (a) < (b) ? (b) : (a); }
bool sortbyff(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.first < b.first);
}
long num[1000001], t[5001][2];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long n, m, k, i, j, l, r, a = -1, b = -1, c, d, s, u, w, x = 0, y, z, sum = 0,
                            p = 0, ans = 0, M = 10000000;
  cin >> n;
  cout << n << " ";
  for (i = 1; i < n; i++) {
    cout << i << " ";
  }
  return 0;
}
