n=0.decode("$System.in")-1 (-n..n).any{j=it.abs() println' '*j+'*'*(2*n-2*j+1)}