def print2D(size,a,b): for i in range(a): for j in range(b): print(size[i][j],end = ' ') print() s = [] a,b = map(int,input().split()) for i in range(a): s.append(list(map(int,input().split()))) print2D(s,a,b)