The first line contains two integers n,mn,mn,m .
The next line contains nnn integers a1,…,ana_1,\dots,a_na1,…,an .
For the next mmm lines, each line contains three integers l⊕c,r⊕c,x⊕cl\oplus c,r\oplus c,x\oplus cl⊕c,r⊕c,x⊕c , means an operation l,r,xl,r,xl,r,x. Where ⊕\oplus⊕ is bitwise XOR, and ccc is the answer to the last operation (especially, c=0c=0c=0 for the first operation).