# include <stdio.h>

int main()
{
    int n = 0;
    //多组输入
    while (~scanf(" %d", &n))
    {
        //控制多少行
        for (int i = 0; i < n; i++)
        {
            //打印一行
            for (int j = 0; j < n; j++)
            {
                printf("* ");
            }
            printf("\n");
        }
    }

    return 0;
}