data = [ ['*x*'], [' xx'], ['* *']]a = int(input())for i in range(a): for j in range(a): print(data, end='') print()