#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "2 ";
    int odd = 1;
    int even = 4;
    for (int i = 2; i <= n; i++) {
      if (i % 2 == 0) {
        cout << odd << " ";
        odd += 2;
      } else {
        cout << even << " ";
        even += 2;
      }
    }
  } else {
    int odd = 3;
    int even = 2;
    cout << "1"
         << " ";
    for (int i = 2; i <= n; i++) {
      if (i % 2 == 0) {
        cout << odd << " ";
        odd += 2;
      } else {
        cout << even << " ";
        even += 2;
      }
    }
  }
  return 0;
}
