#include <iostream>

using namespace std;

int main()
{
	int n; cin >> n;
	int a=0; 
	while (a < n)
	{
		cout << "*";
		a++;
		
	}
	cout <<"\n";

	int i = 0;
	int spaceL;
	int spaceR;
	spaceL= 0;
	
	spaceR= n-3;

	while (i < n-2)
	{
		cout << "*";
		int k = 0;
		while (k < spaceL)
		{
			cout << " ";
			k++;
		}
		cout << "*";
		int p = 0;
		while (p < spaceR)
		{
			cout << " ";
			p++;
		}
		cout << "*";

		cout <<"\n";
		spaceL++;
		spaceR--;
		i++;
	}

	a = 0;
	while (a < n)
	{
		cout << "*";
		a++;
		
	}
	return 0;
}