#include <iostream>
using namespace std;
int main()
{
  int i , r , n , o , s;
  cin >> n;
  s = n - 3;
  i = 0;
  r = 0;
  o = 0;
     while ( i < n )
     {

         cout << "*";
         i ++;
     }

     cout << '\n';

     
     int y = n - 2 ;
     int u = 0;
     while ( u < y )
     {
  
        cout << "*";
           
           int p = 0 ;
           while ( p < o )
           {

               cout << " ";
               p ++;

           }

        o ++;
        cout << "*";

           int m = 0;
           while ( m < s )
           {

               cout << " ";
               m ++;
           }


        s --;
        cout << "*";

        cout <<'\n';
        u ++;


     }


    while ( r < n )
    {

        cout << "*";
        r ++;
    }



  return 0;
}