n = 5
a = 1
b = n * 2 - 1
for x in range(n, 0, -1):
    for y in range(1, n * 2 + 1):
        if y == a or y == b:
            print(x, end="")
        else:
            print(" ", end="")
    a += 1
    b -= 1
    print()
