def draw_rhombus(i):
    return f"{' ' * (n - i)} {'* ' * i}".rstrip()


def create_rhombus(n):
    for upper in range(1, n + 1):
        print(draw_rhombus(upper))

    for lower in range(n - 1, -1, -1):
        print(draw_rhombus(lower))

    return None


n = int(input())

create_rhombus(n)

# Input
# 1
# 2
# 3
# 4
# 5 ...
91bf96898b33d989bbdc3d357fd93fc4f6fcf1f0
<mask token>

<mask token>


def create_rhombus(n):
    for upper in range(1, n + 1):
        print(draw_rhombus(upper))
    for lower in range(n - 1, -1, -1):
        print(draw_rhombus(lower))
    return None


<mask token>

def draw_rhombus(i):
    return f"{' ' * (n - i)} {'* ' * i}".rstrip()


def create_rhombus(n):
    for upper in range(1, n + 1):
        print(draw_rhombus(upper))
    for lower in range(n - 1, -1, -1):
        print(draw_rhombus(lower))
    return None


<mask token>
create_rhombus(n)

def draw_rhombus(i):
    return f"{' ' * (n - i)} {'* ' * i}".rstrip()


def create_rhombus(n):
    for upper in range(1, n + 1):
        print(draw_rhombus(upper))
    for lower in range(n - 1, -1, -1):
        print(draw_rhombus(lower))
    return None


n = int(input())
create_rhombus(n)

def draw_rhombus(i):
    return f"{' ' * (n - i)} {'* ' * i}".rstrip()


def create_rhombus(n):
    for upper in range(1, n + 1):
        print(draw_rhombus(upper))

    for lower in range(n - 1, -1, -1):
        print(draw_rhombus(lower))

    return None


n = int(input())

create_rhombus(n)

# Input
# 1
# 2
# 3
# 4
# 5 ...