#include<bits/stdc++.h>
#define rep(i,n,m) for(int i = (n); i <(m); i++)
#define rrep(i,n,m) for(int i = (n) - 1; i >=(m); i--)
using namespace std;
using ll = long long;

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

    int m = 2*n - 1;
    if (x == m or x == 1)
    {
        cout << "No" << endl;
        return 0;
    }
    cout << "Yes" << endl;


    rep(i, 0, m)
    {
        int now = (x - n + i) % m;
        if (now < 0 ) now += m;
        ++now;
        printf("%d ", now);

    }
    cout << endl;
    return 0;
}