#include <bits/stdc++.h>
using namespace std;
int n, a[111111];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) a[i] = i + 1;
  for (int i = n % 2; i < n - 1; i += 2) swap(a[i], a[i + 1]);
  for (int i = 0; i < n; i++) printf("%d ", a[i]);
  return 0;
}
