#include<iostream>
#include<algorithm>
#include<queue>
#include<vector>
#include<map>
using namespace std;
int N, X;

int main(){
    ios_base::sync_with_stdio(false);
    cin >> N >> X;

    if(X == 1 || X == 2*N-1){
        cout << "No" << endl;
    }
    else{
        cout << "Yes" << endl;
        for(int i=0; i<2*N-1; i++){
            cout << (X+N+i-1)%(2*N-1)+1 << endl;
        }
    }

    return 0;
}
