#28853: python 一行解


jeter.nice@gmail.com (唯一)


(lambda n:[print('_'*(i-1)+'*'*j) for i,j in zip(range(n,0,-1),range(1,n+1))])(int(input()))