#include <bits/stdc++.h>
using namespace std;
long long N = 1000000007;
int inf = INT_MAX;
long long pw(long long a, long long b) {
  if (b == 0) return 1;
  long long ans = pw(a, b / 2);
  ans = (ans * ans);
  if (b % 2) ans = (ans * a);
  return ans;
}
bool is(int* arr, int k) {
  int a = arr[0];
  for (int i = 0; i < k; i++)
    if (arr[i] != a) return false;
  return true;
}
void solve() {
  int n;
  cin >> n;
  if (n == 1 || n == 2) {
    cout << "No\n";
    return;
  }
  cout << "Yes\n";
  cout << (n / 2) << " ";
  for (int i = 2; i <= n; i += 2) cout << i << " ";
  cout << "\n";
  cout << (n + 1) / 2 << " ";
  for (int i = 1; i <= n; i += 2) cout << i << " ";
}
int main() {
  int t = 1;
  while (t--) solve();
  return 0;
}
