h, w = map(int, input().split()) T = [["."] * 100 for i in range(100)] lst = [] for i in range(h): T[i][:w] = list(input()) a = [["."] * 50 for i in range(50)] b = [["."] * 50 for i in range(50)] for i in range(50): for j in range(50): a[i][j] = "#"