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