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