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

int main(){
  int x, n;
  cin >> n >> x;

  if(x == 1 || x == 2 * n - 1){
    cout << "No" << endl;
  }else{
    cout << "Yes" << endl;
    vector<int> ans(2 * n - 1);
    for(int i = 0;i < 2 * n - 1;i++){
      ans[i] = i + 1;
    }
    int tmp;
    tmp = ans[x - 1];
    ans[x - 1] = ans[n - 1];
    ans[n - 1] = tmp;

    tmp = ans [n];
    ans[n] = ans[0];
    ans[0] = tmp;

    tmp = ans[n - 2];
    ans[n - 2] = ans[2 * n - 2];
    ans[2 * n - 2] = tmp;
    for(int i = 0;i < 2 * n - 1;i++){
      cout << ans[i] << endl;
    }
  }
}