#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  cout << n << ' ';
  for (long long i = 1; i < n; ++i) cout << i << ' ';
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout << fixed << setprecision(9);
  solve();
  return 0;
}
