# n = raw_input("Input n:")
n = 9
matrix = [[] for i in range(n)]
for i in xrange(n):
for j in xrange(n):
if (i == j) or (i == (n-j-1)):
matrix[i].append('*')
else:
matrix[i].append(' ')
print ''.join(matrix[i])
IyBuID0gcmF3X2lucHV0KCJJbnB1dCBuOiIpCm4gPSA5Cm1hdHJpeCA9IFtbXSBmb3IgaSBpbiByYW5nZShuKV0KZm9yIGkgaW4geHJhbmdlKG4pOgogICAgZm9yIGogaW4geHJhbmdlKG4pOgogICAgICAgIGlmIChpID09IGopIG9yIChpID09IChuLWotMSkpOgogICAgICAgICAgICBtYXRyaXhbaV0uYXBwZW5kKCcqJykKICAgICAgICBlbHNlOgogICAgICAgICAgICBtYXRyaXhbaV0uYXBwZW5kKCcgJykKICAgIHByaW50ICcnLmpvaW4obWF0cml4W2ldKQ==