import java.util.Scanner;
public class invertedHourGlass {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int nr = 2*n - 1;
int nsp = n-1;
int nst = 1;
// Rows
int row = 1;
while(row <= n)
{
//Work for Space1
for(int csp = 1; csp<=nsp;csp++)
{
System.out.print(" ");
}
//Work for Star
for(int cst = 1; cst<=nst;cst++)
{
System.out.print("*");
}
System.out.println();
if(row <= nr/2+1)
{
nsp--;
nst+=2;
}
else
{
nsp++;
nst-=2;
}
row++;
}
}
}