#include<cstring>
#include<cstdlib>
#include<cstdio>
#include<cmath>
#include<iostream>
#define N 210000
using namespace std;
int a[N],n,m,x,ans[N];
int main()
{
	scanf("%d%d",&n,&x);
	m=2*n-1;
	if(x==1 || x==m) {printf("No\n");return 0;}
	ans[n]=x;ans[n-1]=x-1;ans[n+1]=x+1;
	int j=1;
	for(int i=1;i<=m;i++)
	{
		if(abs(i-n)<=1) continue;
		while(abs(j-x)<=1) j++;
		ans[i]=j;
		j++;
	}
	printf("Yes\n");
	for(int i=1;i<=m;i++) printf("%d\n",ans[i]);
	return 0;
}