package Lecture1;
import java.util.Scanner;
public class Pattern21 {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in) ;
int n = scn.nextInt() ;
int nst=1;
int nsp=2*n-3;
//row
int row=1;
while (row<=n) {
//star work
for (int cst=1; cst <=nst; cst++) {
System.out.print("*");
}
//space work
for(int csp=1; csp <=nsp; csp++) {
System.out.print("*");
}
//star work
for (int cst=1; cst <=nst; cst++) {
System.out.print("*");
}
//preparation
System.out.println();
nst=nst+1;
nsp=nsp-2;
row=row+1;
}
}
}