#include<iostream>
#include<vector>
#include<cmath>

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

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

	std::cout<<"Yes"<<std::endl;

	int count1=0;
	int count2=0;
	if(x>=n)
		count2++;

	while(count1<n-1){
		if(n-count2 == x){
			count2++;
			continue;
		}

		std::cout<<n-count2<<std::endl;
		count1++;
		count2++;
	}

	std::cout<<x<<std::endl;
	count1=0;
	count2=0;

	while(count1<n-1){
		if((2*n-1)-count2 == x){
			count2++;
			continue;
		}

		std::cout<<(2*n-1)-count2<<std::endl;
		count1++;
		count2++;
	}

	return 0;
}