#include using namespace std; using ll = long long; #define ALL(a) (a).begin(), (a).end() #define Yes cout << "Yes" << endl #define No cout << "No" << endl int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int N; cin >> N; if (N == 2) { No; return 0; } vector ans(N); for (int i = 0; i < N; i++) { ans[i] = i + 1; } if (N % 2 == 0) swap(ans[N - 2], ans[N - 1]); for (auto x : ans) cout << x << ' '; cout << endl; }