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