#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pi = pair<int, int>;
using vb = vector<bool>;
using vi = vector<int>;
using vpi = vector<pi>;
using vll = vector<ll>;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  cout << n << ' ';
  for (int i = 1; i < n; ++i) {
    cout << i << ' ';
  }
}
