#include<iostream>
using namespace std;
void Print(int from, int m)
{
for (int i = 0; i < (2 * from + 1) + m; i++)
{
if (i < m)
cout << " ";
else
cout << "*";
}
cout << endl;
return;
}
void SymbolOutput(int from, int n, int m)
{
if (from > n / 2)
return;
Print(from, m);
SymbolOutput(from + 1, n, m - 1);
if (from < n / 2)
Print(from, m);
return;
}
int main()
{
int n = 0;
cin >> n;
SymbolOutput(0, n, n / 2);
system("pause");
}