#include <iostream>
using namespace std;
int main ()
{
int n;
cin >> n;
for ( int i = 0 ; i < n ; i ++ )
{
for ( int j = 0 ; j < n ; j ++ )
{
if ( n/2 <= i && i <= n - 1 && n/2 <= j && j <= n - 1 )
{
if ( i + j <= n/2 + n - 1 )
{
if ( i != n/2 && j != n/2 )
{
cout << "*";
}
}
else
{
cout << " ";
}
}
if ( n/2 <= i && i <= n - 1 && 0 <= j && j <= n/2 )
{
if ( j >= i - n/2 )
{
if ( i != n/2 && j != n/2 )
{
cout << "*";
}
}
else
{
cout << " ";
}
}
if ( 0 <= i && i <= n/2 && 0 <= j && j <= n/2 )
{
if ( i + j >= n/2 )
{
if ( i != n/2 && j != n/2 )
{
cout << "*";
}
}
else
{
cout << " ";
}
}
if ( 0 <= i && i <= n/2 && n/2 <= j && j <= n - 1 )
{
if ( j + (j - n/2) <= i + j )
{
if ( i != n/2 && j != n/2 )
{
cout << "*";
}
}
else
{
cout << " ";
}
}
if ( i == n/2 || j == n/2 )
{
cout << "*";
}
}
cout << '\n';
}
return 0;
}