#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << '\n';
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
const long long maxn = (long long)1e6 + 6;
const long double EPS = 1e-9;
const long long INF = (long long)1e18 + 18;
const long long mod = (long long)1e9 + 7;
long long n;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  bool flag = false;
  if (n & 1) {
    n--;
    flag = true;
  }
  vector<long long> a(n);
  for (long long i = 0; i < n; i += 2) {
    a[i] = i + 1;
    a[i + 1] = i;
  }
  if (flag) cout << "1 ";
  for (long long i = 0; i < n; i++) {
    cout << a[i] + 1 + (flag ? 1 : 0) << " ";
  }
  cout << '\n';
  return 0;
}
