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{} t[0]=-1 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 { Println("Yes") return } } Println("No") }