#include <stdio.h>
int main()
{
    int  i = 0;
    while(scanf("%d\n", &i) != EOF)
    {
        int m = 0;
        int n = 0;
        for( m = 0; m < i; m++)
        {
            for( n = 0; n < i; n++)
            {
                printf("* ");
            }
            printf("\n");
        }
    }
    return 0;
}