#include <stdio.h>

int main() {

    int n = 0;

    while (scanf("%d", &n) != EOF) 
    { 
        int i = 1;
        int j = 1;

        for (i= 1; i <= n; i++)//行
        {
            for (j = 1; j <= n; j++)//列
            {
                printf("* ");
            }
            printf("\n");//换行
        }
    }

    return 0;
}