#include <bits/stdc++.h>
using namespace std;
long long int n, k, v, m, ans, sum, sum1, l, r, i, j,
    mx = -1, mn = 9999999999, mnn = 9, c, z, x, y, a[551111], d[511111],
    t[111111], u[111111];
pair<int, int> p[111111];
deque<int> q;
long double w;
string s, sos, ss;
char ch[111111], chel, cha;
bool used[111111];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  cout << n << " ";
  for (i = 1; i < n; i++) {
    cout << i << " ";
  }
  return 0;
}
