import java.util.*;
public class Triangle {
public static void drawTriangle(int n) {
for (int i = 1; i <= n; i++) {
for (int j = 1; j < 2 * n; j++) {
if (j == n - i + 1 || j == i + n - 1 || i == n && j % 2 == 1)
System.out.print("*");
else
System.out.print(" ");
}
System.out.println();
}
}
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("输入底部长度:");
int n = scan.nextInt();
drawTriangle(n);
}
}