a = int(input())for i in range(a): print("_" * (a - 1 - i), end="") print("*" * (i * 2 + 1), end="") print("_" * (a - 1 - i), end="") print()