#Validation Test N,Q = map(int,input().split()) A = list(map(int,input().split())) for i in range(N): print(A[i]) for j in range(Q): l,r,k = map(int,input().split()) print(l,r,k)