public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int i=1,nst=1,ns=n-2,nS=0;
while(i<=n) {
int cS=1;
while(cS<=nS) {
System.out.print(" ");
cS++;
}
int cst=1;
while(cst<=nst) {
System.out.print("*");
cst++;
}
int cs=1;
while(cs<=ns) {
System.out.print(" ");
cs++;
}
int csT=1;
while(csT<=nst) {
System.out.print("*");
csT++;
}
if(i<=n/2) {
ns=ns-2;
nS++;
}
else {
ns=ns+2;
nS--;
}
i++;
System.out.println();
}
}
}