#27879: python


11030067@mail.hpsh.tp.edu.tw (和平110級鄧雨珊)


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