num = int(input())
for i in range(num):
for j in range(num-i-1):
print("_",end='')
for j in range(i+1):
print("*",end='')
print('\n')