#include <bits/stdc++.h>
using namespace std;
const int INF = (1 << 31) - 1;
vector<int> d;
string s;
int main() {
  int n;
  cin >> n;
  if (n < 3)
    cout << "No";
  else {
    cout << "Yes\n";
    int a = n / 2 + int(n % 2);
    cout << a << ' ';
    for (int i = 1; i <= n; i += 2) cout << i << ' ';
    cout << "\n";
    a = n / 2;
    cout << a << ' ';
    for (int i = 2; i <= n; i += 2) cout << i << ' ';
  }
}
