lib C fun strtoll(s : UInt8*, p : UInt8**, b : Int32) : Int64 end class String def to_i64 C.strtoll(self, nil, 10) end end n, k = read_line.split.map(&.to_i) a = read_line.split.map(&.to_i64) b = [0i64] (0...n).each { |i| b << (b[-1] ^ a[i]) } c = Hash(Int64, Int32).new(0) b.each { |x| c[x] += 1 } puts c.any? { |key, v| key2 = key ^ k c.has_key?(key2) && (key != key2 || c[key2] >= 2) } ? "Yes" : "No"