    #include <iostream>
    
    using namespace std;
    
    void square(int n)
    {
        for(int row = 0; row < n; ++row)
        {
        for(int col = 0; col < n; ++col)
            cout << (row == col || row + col == n - 1 ||
                     abs(2*row - n + 1) < 2 || abs(2*col - n + 1) < 2 ? '*' : '.');
            cout << "\n";
        }
    }
    
    
    int main()
    {
        int n;
        cin >> n;
        square(n);
    }

