n = int(input('请输入直角三角形的高:'))
for i in range(n):
a = n-i
for j in range(a):
print(' ',end='')
b = 1
for k in range(b):
print('*',end='')#打印斜边
for q in range(2,i+1):
if i == n-1:#打印底边
print('*',end='')
else:
print(' ',end = '')
for p in range(1,n):#打印最后一条包着的变
if (p==1 and i!=0):
print('*',end='')
else:
print(' ',end = '')
print()