#include <bits/stdc++.h>
namespace Main {
namespace Source {}
using namespace Source;
static unsigned int n;
static inline const void main() {
  scanf("%u", &n);
  for (register unsigned int i(1); i <= n; ++i) printf("%u ", i % n + 1);
}
}  // namespace Main
signed int main() {
  Main::main();
  return 0;
}
