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