#include<bits/stdc++.h>
#define pb push_back
#define ll long long
using namespace std;

const int mod = 1e9 + 7;
const int mnx = 3e5 + 9;

ll n, x;

int main() {

cin >> n >> x;

if (x == 1 || x == 2 * n - 1) {
    cout << "No\n";
    return 0;
}

cout << "Yes\n";

vector<int> ans(2 * n - 1);

x--;

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

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

return 0;

}





