#include <bits/stdc++.h>
using namespace std;
const int inf = 100000000;
const double eps = 0.000001;
int main() {
  ifstream fin("input.txt");
  ofstream fout("output.txt");
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) a[i] = i + 1;
  for (int i = n - 1; i > 0; i -= 2) swap(a[i], a[i - 1]);
  for (int i = 0; i < n; i++) cout << a[i] << ' ';
  return 0;
}
