import numpy as np H, W = map(int, input().split()) S = np.array(open(0).read().split(), np.int).reshape((H, W)) for s in S: print(*s)