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