d,a=map(int,input().split(" ")) A=input().split(" ") for i in range(len(A)): if i+1!=len(A): print(A[i],end=" ") else: print(A[i])