#include<stdio.h>
int main(void){
  char *s="python3 -c\""
"n,x=map(int,input().split())\n"
"if n==2and x==2:\n"
"    print('Yes',*[1,2,3],sep='\n')\n"
"    exit()\n"
"a=[[]for _ in range(2*n-1)]\n"
"a[n-1]=x\n"
"f=[0]*2*n\n"
"f[x]=1\n"
"try:\n"
"    if x>2*n-3:\n"
"        a[n-3]=x-2\n"
"        a[n-2]=x+1\n"
"        a[n]=x-1\n"
"        f[x-2]=f[x-1]=f[x+1]=1\n"
"    else:\n"
"        a[n-3]=x+2\n"
"        a[n-2]=x-1\n"
"        a[n]=x+1\n"
"        f[x-1]=f[x+1]=f[x+2]=1\n"
"    if f[0]:\n"
"        1/0\n"
"except:\n"
"    print('No')\n"
"    exit()\n"
"i=0\n"
"for j,v in enumerate(f[1:],1):\n"
"    if v:continue\n"
"    while a[i]:i+=1\n"
"    a[i]=j\n"
"print('Yes',*a,sep='\n')\n"
"\"";
  system(s);
  return 0;
}            