import java.util.Scanner;
public class F101 {
public static void main(String[] args) {
int q;
System.out.println("请输入金字塔的层数");
Scanner in =new Scanner(System.in);
q=in.nextInt();
for(int i=1;i<=q;i++){
for(int k=q;k>i;k--){
System.out.print(" ");
}
for(int j=0;j<2*i-1;j++){
System.out.print("*");
}
System.out.println("");
}
}
}