#include <cstdio>
#include <cstdlib>
void set_star(char** , int , int, int);
int main() {
int n;
scanf("%d", &n);
char** matrix = new char*[n];
for (int i = 0; i < n; i++)
matrix[i] = new char[2*n+1];
for (int i = 0; i < n; i++)
for (int j = 0; j < 2 * n; j++)
matrix[i][j] = ' ';
set_star(matrix, n, 0, n-1);
for (int i = 0; i < n; i++) {
for (int j = 0; j < 2*n; j++) {
printf("%c", matrix[i][j]);
}
printf("\n");
}
for (int i = 0; i < n; i++) {
delete[] matrix[i];
}
delete[] matrix;
scanf("%d");
}
void set_star(char** matrix, int n, int x, int y) {
if (n == 3) {
matrix[x][y] = '*';
matrix[x+1][y - 1] = '*';
matrix[x+1][y + 1] = '*';
matrix[x+2][y - 2] = '*';
matrix[x+2][y - 1] = '*';
matrix[x+2][y] = '*';
matrix[x+2][y + 1] = '*';
matrix[x+2][y + 2] = '*';
}
else {
set_star(matrix, n / 2, x, y);
set_star(matrix, n / 2, x + (n / 2), y - (n / 2));
set_star(matrix, n / 2, x + (n / 2), y + (n / 2));
}
}