def draw(i): str = "*" * i + " " * (2 * (n - i)) + "*" * i print(str) if i != n: draw(i + 1) print(str) n = int(input()) draw(1)