import numpy as np H, W = map(int, input().split()) S = np.array(open(0).read().split(), np.int).reshape((H, W)) print(*[' '.join(map(str, s)) for s in S], sep='\n')