def print_diamond(n):
    for i in range(n):
        if i <= n // 2:
            print(' ' * (n // 2 - i) + '*' * (2 * i + 1))
        else:
            print(' ' * (i - n // 2) + '*' * (2 * (n - i - 1) + 1))

n = int(input())

if n > 2 and n % 2 == 1:
    print_diamond(n)
else:
    print("The number must be an odd number greater than 2.")