import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class PrintStars {
public static void main(String[] args) throws NumberFormatException, IOException
{
BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
int allNums = Integer.parseInt(br.readLine());
for(int i = 1; i < (allNums + 1); i++)
{
printLine(allNums,i);
}
for(int j = (allNums - 1); j > 0; j--)
{
printLine(allNums,j);
}
}
public static void printLine(int allNums, int n)
{
for(int i = 0; i < (allNums - n); i++)
{
System.out.print(" ");
}
int temp = n;
while(temp > 0)
{
System.out.print("* ");
temp--;
}
System.out.println();
}
}