Scanner scn = new Scanner(System.in);
int n=scn.nextInt();
int nsp=0;
int nst=n;
// row
int row=1;
while(row<=n) {
// spaces work
for(int csp=1;csp<=nsp;csp++); {
System.out.print(" ");
}
// star work
for(int cst=1; cst<=nst;cst++) {
System.out.print("*");
}
System.out.println();
nsp=nsp+2;
nst=nst-1;
row=row+1;
}
}
}