#include using namespace std; int main(){ int N; cin >> N; vector ans(N + 2, 2000000000); if (N == 1){ ans[1] = 1; } else if (N == 2){ ans[1] = 1; ans[2] = 2; } else { ans[1] = 1; ans[2] = N - 1; for (int i = 3; i < N; i++){ ans[i] = i - 1; } ans[N] = N; } for (int i = 0; i < N + 2; i++){ cout << ans[i]; if (i < N + 1){ cout << ' '; } } cout << endl; }