#include <bits/stdc++.h>
using namespace std;
int main()
{
    long n;
    cin>>n;
    long x;
    cin>>x;
    if(x>1&&x<n)
    {
        cout<<"Yes"<<endl;
        for(long i=x+n;i<2*n;i++)cout<<i<<endl;
        for(long i=1;i<x+n;i++)cout<<i<<endl;
        return 0;
    }
    if(x>=n&&x<2*n-1)
    {
        cout<<"Yes"<<endl;
        for(long i=x-n+1;i<2*n;i++)cout<<i<<endl;
        for(long i=1;i<=x-n;i++)cout<<i<<endl;
        return 0;
    }
     cout<<"No"<<endl;




}
