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