/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void printStarln(int pos){
        while (pos > 0){
            if ((pos & 1) == 1){
                System.out.print("*");
            }else{
                System.out.print(" ");
            }
            pos >>= 1;
        }
        System.out.println();
    }

	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int l1 = 1 << n-1;
        int l2 = 1;
        for (int i = 0; i < n; i++) {
            printStarln(l1 | l2);
            l1 >>= 1;
            l2 <<= 1;
        }
        sc.close();
	}
}