#include<iostream>
using namespace std;
int main()
{
    int N;
    if(!(cin>>n))
    return 0;
    if(N <0 )
    {
        cout<< "Invalid input"<< endl;
    }
    else
    {
    for (int i = 1; i <= N; ++i)
    {
        for (int j = 1; j <= N; ++j)
        {
            cout << " ";
        }
        for (int k = 1; k <= 2 * i - 1; k++)
        {
            cout << "*";
        }
        cout << endl;
    }
}
return 0;
}