using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray(); public static void Main() { Solve(); } static void Solve() { var c = NList; var (n, x) = (c[0], c[1]); var a = NList; var list = new List<(int ai, int xi)>(n); foreach (var ai in a) list.Add((ai, ai & (((1 << 30) - 1) ^ x))); list.Sort((l, r)=> l.xi.CompareTo(r.xi)); for (var i = 0; i + 1 < list.Count; ++i) { if (list[i].xi == list[i + 1].xi) { WriteLine("No"); return; } if (list[i].ai >= (list[i + 1].ai ^ x) || (list[i].ai ^ x) >= list[i + 1].ai) { WriteLine("No"); return; } } WriteLine("Yes"); } }