#include using namespace std; typedef pair pii; typedef long long ll; const int N = 2000086, MOD = 1e9 + 7, INF = 0x3f3f3f3f; ll res; int n, m, cnt, w[N]; int main() { cin >> n; vector ans = {0}; if (n % 2 == 0) { puts("No"); return 0; } puts("Yes"); int l = n >> 1, r = 2; vector a = {l}, b = {r}; bool f = 0; for (int i = 2; i < n + 1; i++) { if (!f) { if (l != 1) r += 2, l--; else l = n, r = 1, f = 1; } else l--, r += 2; a.push_back(l), b.push_back(r); } for (auto u : a) printf("%d ", u); puts(""); for (auto u : b) printf("%d ", u); puts(""); return 0; }