#include using namespace std; template istream& operator >> (istream& is, vector& vec) { for(T& x : vec) is >> x; return is; } template ostream& operator << (ostream& os, const vector& vec) { if(vec.empty()) return os; os << vec[0]; for(auto it = vec.begin(); ++it != vec.end(); ) os << ' ' << *it; return os; } int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; if(n == 2){ cout << "No\n"; return 0; } vector d = {(n + 1) / 2, -(n - 1) / 2}; vector a(n), b(n); a[0] = 1, b[0] = d[0]; for(int i = 0; i + 1 < n; i++){ a[i + 1] = a[i] + (i & 1 ? d[1] : d[0]); b[i + 1] = b[i] + (i & 1 ? d[0] : d[1]); } cout << "Yes\n" << a << '\n' << b << '\n'; }