while True:
try:
num = int(input())
for i in range(1, num + 1):
print(" " * (num-i), "* " * i, sep="") # num - i两个空格代表一个“* ”
except:
break
while True:
try:
num = int(input())
for i in range(1, num + 1):
print(" " * (num-i), "* " * i, sep="") # num - i两个空格代表一个“* ”
except:
break