#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const ll M = 1000000007;
const ll N = 998244353;
ll power(ll x, ll y, ll p) {
  ll res = 1;
  x = x % p;
  if (x == 0) return 0;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
ll inv(ll x, ll m) { return power(x, m - 2, m); }
struct comp {
  template <typename T>
  bool operator()(const T &a, const T &b) {
    if (a.first == b.first)
      return (a.second < b.second);
    else
      return (a.first < b.first);
  }
};
bool mod(const pair<ll, ll> &a, const pair<ll, ll> &b) {
  if (a.first == b.first)
    return (a.second < b.second);
  else
    return (a.first < b.first);
}
int main() {
  cin.tie(NULL);
  cout.tie(NULL);
  ll n;
  cin >> n;
  if (n % 2) {
    cout << 1 << " ";
    for (int i = 2; i <= n; i += 2) {
      cout << i + 1 << " " << i << " ";
    }
  } else {
    for (int i = 1; i <= n; i += 2) {
      cout << i + 1 << " " << i << " ";
    }
  }
  return 0;
}
