#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:102400000,102400000")
template <class T>
T _max(T x, T y) {
  return x > y ? x : y;
}
template <class T>
T _min(T x, T y) {
  return x < y ? x : y;
}
template <class T>
T _abs(T x) {
  return (x < 0) ? -x : x;
}
template <class T>
T _mod(T x, T y) {
  return (x > 0) ? x % y : ((x % y) + y) % y;
}
template <class T>
void _swap(T& x, T& y) {
  T t = x;
  x = y;
  y = t;
}
template <class T>
void getmax(T& x, T y) {
  x = (y > x) ? y : x;
}
template <class T>
void getmin(T& x, T y) {
  x = (x < 0 || y < x) ? y : x;
}
int TS, cas = 1;
const int M = 100000 + 5;
int n;
int ret[M];
void run() {
  int i, j;
  for (i = 1, j = 2; i <= n; i += 2, j += 2) ret[i] = j;
  for (i = 2, j = 3; i <= n; i += 2, j += 2) ret[i] = j;
  ret[n] = 1;
  for (i = 1; i <= n; i++) printf("%d%c", ret[i], (i == n) ? '\n' : ' ');
}
void preSof() {}
int main() {
  preSof();
  while ((~scanf("%d", &n))) run();
  return 0;
}
