#include <bits/stdc++.h>
using namespace std;
int arr[100003];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) arr[i] = i + 1;
  if (n % 2 == 0) {
    for (int i = 0; i < n + 1; i += 2) swap(arr[i], arr[i + 1]);
    cout << arr[0] << " " << arr[1];
    for (int i = 2; i < n; i++) cout << " " << arr[i];
  } else {
    for (int i = 1; i < n + 1; i += 2) swap(arr[i], arr[i + 1]);
    cout << arr[0];
    for (int i = 1; i < n; i++) cout << " " << arr[i];
  }
}
