import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while(scan.hasNextInt()) {
int n = scan.nextInt();
int[][] arr = new int[n][n];
int y = n - 1;
for(int i = 0; i < arr.length; i++) {
for(int j = 0; j < arr[i].length; j++) {
if(i == j || j == y) {
System.out.print("*");
} else {
System.out.print(" ");
}
}
System.out.println();
y--;
}
}
}
}