Problem: Mahmoud and Ehab are on the third stage of their adventures now. As you know, Dr. Evil likes sets. This time he won't show them any set from his large collection, but will ask them to create a new set to replenish his beautiful collection of sets.

Dr. Evil has his favorite evil integer x. He asks Mahmoud and Ehab to find a set of n distinct non-negative integers such the bitwise-xor sum of the integers in it is exactly x. Dr. Evil doesn't like big numbers, so any number in the set shouldn't be greater than 106.

Input

The only line contains two integers n and x (1 ≤ n ≤ 105, 0 ≤ x ≤ 105) — the number of elements in the set and the desired bitwise-xor, respectively.

Output

If there is no such set, print "NO" (without quotes).

Otherwise, on the first line print "YES" (without quotes) and on the second line print n distinct integers, denoting the elements in the set is any order. If there are multiple solutions you can print any of them.

Examples

Input

5 5


Output

YES
1 2 4 5 7

Input

3 6


Output

YES
1 2 5

Note

You can read more about the bitwise-xor operation here: <https://en.wikipedia.org/wiki/Bitwise_operation#XOR>

For the first sample <image>.

For the second sample <image>.

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;


public class C {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x = sc.nextInt();
		if(n == 1)
		{
			System.out.println("YES");
			System.out.println(x);
			return;
		}
		
		if(n == 2)
		{
			if(x == 0)
			{
				System.out.println("NO");
				return;
			}
			System.out.println("YES");
			System.out.println(x + " " + 0);
			return;
		}
		
		if(n == 3)
		{
			if(x == 0)
			{
				System.out.println("YES");
				System.out.println(1 + " " + 2 + " " + 3);
				return;
			}
			
			System.out.println("YES");
			if(Integer.bitCount(x) == 1)
			{
				if(x != 1)
					System.out.println("1 " + 0 + " " + (x+1));
				else
					System.out.println(0 + " " + 2 +" " +3);
			}
			else
			{
				for (int i = 0; i < 25; i++) {
					int shift = 1<<i;
					if((x & shift) != 0)
					{
						System.out.println(0 + " " + shift + " " + (x-shift));
						return;
					}
				}
			}
			return;
		}
		int b3 = x&15;
		int base1, base2;
		if(b3 != 1 && b3 != 2 && b3 != 3)
		{
			base1 = 1; base2 = 2;
		}
		else
		{
			base1 = 4;
			base2 = 8;
		}
		
		int[] ans = new int[n];
		ans[0] = base1;
		ans[1] = base2;
		int xor = base1 ^ base2;
		ans[2] = xor;
		xor = 0;
		int i = 3;
		int mul = 1;
		for (mul = 1; i+2 < n; mul++) {
			ans[i++] = base1 + mul*16;
			ans[i++] = base2 + mul*16;
			xor ^= ans[i-1] ^ ans[i-2];
		}
		
		// rem 1
		if(x != 0)
		{
			if(i == n-1)
			{
				if(xor == 0)
				{
					ans[i] = x;
				}
				else
				{
					ans[i] = x;
					ans[2] = 0;
				}
			}
			else // rem 2
			{
				if(xor == 0)
				{
					ans[i] = x;
					ans[i+1] = 0;
				}
				else
				{
//					ans[i] = base1 + mul*16;
//					ans[i+1] = base2 + mul*16;
//					ans[2] = x;
					ans[0] = x;
					ans[1] = ans[2] + (1<<19) + (1<<18);
					ans[i] = 1<<19;
					ans[i+1] = 1<<18;
					ans[2] = 0;
				}
			}
		}
		else
		{
			if(i == n-1)
			{
				if(xor == 0)
				{
					ans[i] = x;
				}
				else
				{
//					ans[i] = base1 + mul*16;
//					ans[2] = base2 + mul*16;
					ans[0] = 1<<18;
					// arr[1] arr[i] arr[i+1]
					ans[1] = ans[2] + (1<<19) + (1<<18);
					ans[i] = 1<<19;
					ans[2] = 0;
				}
			}
			else // rem 2
			{
				if(xor == 0)
				{
					ans[i] = base1 + mul*16;
					ans[i+1] = base2 + mul*16;
					ans[2] = x;
				}
				else
				{
					ans[i] = base1 + mul*16;
					ans[i+1] = base2 + mul*16;
				}
			}
		}
		
		PrintWriter pw = new PrintWriter(System.out);
		pw.println("YES");
		for (int j = 0; j < ans.length; j++) {
			pw.print(ans[j] + " ");
		}
		pw.flush();
		pw.close();
	}
	
	static class Scanner 
	{
		StringTokenizer st; BufferedReader br;
		public Scanner(InputStream s){	br = new BufferedReader(new InputStreamReader(s));}
		public Scanner(String s) throws FileNotFoundException{	br = new BufferedReader(new FileReader(new File((s))));}
		public String next() throws IOException 
		{
			while (st == null || !st.hasMoreTokens()) 
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}
		public int nextInt() throws IOException {return Integer.parseInt(next());}
		public long nextLong() throws IOException {return Long.parseLong(next());}
		public String nextLine() throws IOException {return br.readLine();}
		public double nextDouble() throws IOException
		{
			String x = next();
			StringBuilder sb = new StringBuilder("0");
			double res = 0, f = 1;
			boolean dec = false, neg = false;
			int start = 0;
			if(x.charAt(0) == '-')
			{
				neg = true;
				start++;
			}
			for(int i = start; i < x.length(); i++)
				if(x.charAt(i) == '.')
				{
					res = Long.parseLong(sb.toString());
					sb = new StringBuilder("0");
					dec = true;
				}
				else
				{
					sb.append(x.charAt(i));
					if(dec)
						f *= 10;
				}
			res += Long.parseLong(sb.toString()) / f;
			return res * (neg?-1:1);
		}
		public boolean ready() throws IOException {return br.ready();}
	}
}