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 } } z=z^k for i,v:=range a{ z=z^v if j,ok:=t[z]; ok && j+1<=i-1 { Println("Yes") return } if z==0 { Println("Yes") return } } Println("No") }