# import sys
# sys.exit()
# a = int(input())
# H, W = [int(s) for s in input().split()]
# txy_table = [[int(i) for i in input().split()] for num in range(N)]

H, W = [int(s) for s in input().split()]

S_hw = [[i for i in input().split()] for h in range(H)]

print(S_hw)