Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int nst = n - 3;
int Nst = 1;
int nsp = n - 5;
int Nsp = n - 4;
int row = 1;
while (row <= n) {
if (row == 1) {
for (int i = 1; i <= Nst; i++) {
System.out.print("");
}
for (int i = 1; i <= nsp; i++) {
System.out.print(" “);
}
for (int i = 1; i <= nst; i++) {
System.out.print(”");
}
} else if (row == (n / 2) + 1) {
for (int i = 1; i <= n; i++) {
System.out.print("");
}
} else if (row == n) {
for (int i = 1; i <= nst; i++) {
System.out.print("");
}
for (int i = 1; i <= nsp; i++) {
System.out.print(" “);
}
for (int i = 1; i <= Nst; i++) {
System.out.print(”");
}
} else {
if (row <= n / 2) {
for (int i = 1; i <= Nst; i++) {
System.out.print("");
}
for (int i = 1; i <= nsp; i++) {
System.out.print(" “);
}
for (int i = 1; i <= Nst; i++) {
System.out.print(”");
}
} else {
for (int i = 1; i <= Nsp; i++) {
System.out.print(" “);
}
for (int i = 1; i <= Nst; i++) {
System.out.print(”");
}
for (int i = 1; i <= nsp; i++) {
System.out.print(" “);
}
for (int i = 1; i <= Nst; i++) {
System.out.print(”*");
}
}
}
System.out.println();
System.out.println();
row++;
}