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