// meow.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int a = 0;
for (; n > a; a++)
{
cout << "*";
}
cout << "\n";
a = 0;
for (int b = n - 2, c = 0; b > c; b--)
{
cout << "*";
for (; n - 2 > a; a++)
cout << " ";
a = 0;
cout << "*";
cout << "\n";
}
a = 0;
for (;n > a;a++)
{
cout << "*";
}
return 0;
}