# x = 5
# * 01*34 i = 0 / j = 2
# *** 0***4 i = 1 / j = 123
# ***** ***** i = 2 / j = 01234
# *** 0***4 i = 3 / j = 123
# * 01*34 i = 4 / j = 2
def dimond():
x = abs(int(input()))
y = x//2
for i in range(x):
for j in range(x):
if abs(i - y) + abs(j - y) <= y:
print("*", end = "")
else:
print(" ", end = "")
print()
return()
dimond()