#include <bits/stdc++.h>
using namespace std;
long long power(long long a, long long b) {
  if (b == 1) return a;
  if (b == 0) return 1;
  long long temp = power(a, b / 2);
  long long ans = temp * temp;
  if (b & 1) ans *= a;
  return ans;
}
long long power(long long a, long long b, long long p) {
  a = a % p;
  if (b == 1) return a;
  if (b == 0) return 1;
  long long temp = power(a, b / 2, p);
  long long ans = (temp * temp) % p;
  if (b & 1) ans = (a * ans) % p;
  return ans;
}
long long inv(long long a) { return power(a, 1000000007 - 2, 1000000007); }
signed main() {
  ios_base::sync_with_stdio(false);
  long long t;
  t = 1;
  while (t--) {
    long long n;
    cin >> n;
    long long i = 1;
    if (n & 1) cout << i++ << " ";
    for (; i <= n; i += 2) cout << i + 1 << " " << i << " ";
  }
}
