#include <bits/stdc++.h>
using namespace std;
const long long N = 200 * 1000 + 9;
const long long inf = 1e18;
const long long mod = 1e9 + 7;
void HakunaMatata() {
  long long n;
  cin >> n;
  vector<long long> v(n + 1);
  for (long long i = 1; i <= n; i++) v[i] = i;
  if (n % 2 == 0) {
    for (long long i = 2; i <= n; i = i + 2) {
      swap(v[i], v[i - 1]);
    }
    for (long long i = 1; i <= n; i++) cout << v[i] << " ";
    cout << '\n';
  } else {
    for (long long i = 3; i <= n; i = i + 2) {
      swap(v[i], v[i - 1]);
    }
    for (long long i = 1; i <= n; i++) cout << v[i] << " ";
    cout << '\n';
  }
  return;
}
signed main() {
  HakunaMatata();
  return 0;
}
