import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int e = 3*n-1; for(int i=0;i<n;i++){ for(int k=0;k<e;k++){ System.out.print(" "); } for(int j=0;j<i+1;j++){ System.out.print("*"); System.out.print(" "); } System.out.println(); e -=1; for(int k=0;k<e;k++){ System.out.print(" "); } for(int j=0;j<i+1;j++){ System.out.print("* *"); System.out.print(" "); } System.out.println(); e -=1; for(int k=0;k<e;k++){ System.out.print(" "); } for(int j=0;j<i+1;j++){ System.out.print("* * *"); System.out.print(" "); } System.out.println(); e -=1; } for (int p= 0;p<n;p++){ for(int q=0;q<(3*n-1);q++){ System.out.print(" "); } System.out.println("* "); } } }