#include <cstdio>
#include <vector>
#include <numeric>

using namespace std;

int main() {
    size_t N, x;
    scanf("%zu %zu", &N, &x);

    if (x == 1 || x == 2*N-1)
        return !printf("No\n");

    vector<int> A(2*N-1), B(3);
    iota(A.begin(), A.end(), 1);
    iota(B.begin(), B.end(), x-1);

    A.erase(A.begin()+x-2, A.begin()+x+1);
    A.insert(A.begin()+N-2, B.begin(), B.end());

    printf("Yes\n");
    for (int a: A) printf("%d\n", a);

    return 0;
}
