/* -*- coding: utf-8 -*- * * 3267.cc: No.3267 PQ Straight - yukicoder */ #include #include using namespace std; /* constant */ const int MAX_N = 200000; /* typedef */ /* global variables */ int ps[MAX_N]; /* subroutines */ /* main */ int main() { int n; scanf("%d", &n); if (! (n & 1)) { puts("No"); return 0; } for (int i = 1; i <= n; i++) ps[i - 1] = (i & 1) ? (i + 1) / 2 : (i + n + 1) / 2; puts("Yes"); for (int i = 0; i < n; i++) printf("%d%c", ps[i], (i + 1 < n) ? ' ' : '\n'); for (int i = 0; i < n; i++) printf("%d%c", ps[(i + n - 1) % n], (i + 1 < n) ? ' ' : '\n'); return 0; }