package main import . "fmt" import . "os" import bf "bufio" func main() { rd:=bf.NewReader(Stdin) var n,k,z int Fscan(rd,&n,&k) a:=make([]int,n) t:=map[int]int{} for i:=range a { Fscan(rd,&a[i]) z=z^a[i] if _,ok:=t[z]; !ok { t[z]=i } if z==k { Println("Yes") return } } r:=z for i,v:=range a{ z=z^v if j,ok:=t[r^z^k]; ok && j+1<=i { Println("Yes") return } if z==k { Println("Yes") return } } Println("No") }