from copy import deepcopy
n = int(input())
s = [list(input()) for _ in range(n)]

emp = [[''] for _ in range(n)]
for a in range(n):
    for b in range(n):
        out = 
        tmp1 = deepcopy(s)
        