from random import sample,randint,random from time import time from math import exp import sys #------------------------------------------------- TIME_LIMIT=1.070 ALPHA=0.02 ep=10**(-10) #------------------------------------------------- def Probability(Delta,Time): if Delta>0: return 1 else: return exp(Delta/(ALPHA*Time+ep)) T=time() N,M=map(int,input().split()) A=list(map(int,input().split())) if N==M: print(" ".join(map(str,A))) sys.exit() P=set(sample(range(N),M)) X=[] Y=[] R=0 for i in range(N): if i in P: X.append(A[i]) R^=A[i] else: Y.append(A[i]) t=time()-T while t