using C=System.Console;class P{static void Main() {int i=0,j,n=int.Parse(C.ReadLine());string s="",t;for(;i++<n;t+="\n",s=i>1?t+s+t:t)for(j=0,t="";j++<n*2-i;)t+=j<i?" ":"*";C.Write(s);}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).