#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a, b;
  int ct = 0;
  if (n == 1) {
    cout << "1\n";
    return 0;
  }
  if (n % 2 == 0) {
    a = 2, b = 1;
    for (;;) {
      cout << a << " " << b << " ";
      a += 2;
      b += 2;
      if (b > n) break;
    }
  } else {
    a = 2, b = 3;
    cout << "1 ";
    for (;;) {
      cout << b << " " << a << " ";
      a += 2;
      b += 2;
      if (b > n) break;
    }
  }
  cout << "\n";
}
