#include <bits/stdc++.h>

using namespace std;

int N,x;
int a[200001];

int main() {
  cin >> N >> x;
  if(x == 1 || x == 2 * N - 1){
    cout <<"No"<<endl;
    return 0;
  }

  a[N-2] = x-1;
  a[N-1] = x;
  a[N] = x+1;
  int c = 1;
  for(int i = 0; i < 2 * N-1; i++) {
    if(i == N-2 || i == N-1 || i == N) continue;
    else if(c == x-1 || c == x || c == x+1) {
      i--;
      c++;
    }
    else a[i] = c++;
  }
  cout <<"Yes"<<endl;
  for(int i = 0; i < 2 * N-1; i++) cout <<a[i]<<endl;
}
    
  
