#include <bits/stdc++.h>
using namespace std;
long long n;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  if (n % 2) {
    cout << 1 << " ";
    for (long long i = 2; i <= n;) {
      cout << i + 1 << " " << i << " ";
      i += 2;
    }
  } else {
    for (long long i = 1; i <= n;) {
      cout << i + 1 << " " << i << " ";
      i += 2;
    }
  }
  return 0;
}
