import java.util.Scanner;
public class RhomBus {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
System.out.println("请输入一个数");
int n = scan.nextInt();
//循环行数1到n
for(int i=1;i<=n;i++){
//循环输入空白键
int b=n-i;
while(b>0){
System.out.print(" ");
b--;
//循环输入*键
}
int s=i*2-1;
while(s>0){
System.out.print("*");
s--;
}
//返回下一行,再次执行for循环
System.out.println(" ");
}
//菱形下半部分,循环
for(int i=1;i<=n-1;i++){
//下半部空白键
int b=n-i;
while(b<n){
System.out.print(" ");
b++;
}
//下半部*键
int s=(n-i)*2-1;
while(s>0){
System.out.print("*");
s--;
}
System.out.println(" ");
}
}
}