a=str(input())
for i in range(1,4):
for _ in range(3-i):
print(" ",end="")
for _ in range(i):
print(a,end="")
for _ in range(i-1):
print(a,end="")
print()
for i in range(2, 0, -1):
for _ in range(3-i):
print(" ", end="")
for _ in range(2*i-1):
print(a, end="")
print()