#include <iostream>
#include <vector>
using namespace std;

int main(){
  int N, x;
  cin >> N >> x;
  vector<int> ans(2*N-1);
  if(x < 2 or x == 2*N-1){
    cout << "No" << endl;
    return 0;
  }
  int m = (2*N-1)/2;
  ans[m] = x;
  ans[m-1] = 2*N-1;
  ans[m+1] = 1;
  int l = 2, r = 2*N-2;
  for(int i = 0; i < m-1; ++i){
    if(l == x) ++l;
    if(r == x) --r;
    ans[i] = l;
    ans[m+2+i] = r;
    --r;
    ++l;
  }
  cout << "Yes" << endl;
  for(int i = 0; i < 2*N-1; ++i) cout << ans[i] << endl;
  return 0;
}
