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