// editor4
#include <iostream>
using namespace std;
void printTree(int N)
{
    if(N<0)
    {
        cout<<"Invalid input";
        return;
    }
    for(int i = 1; i<=N;i++)
    {
        for(int space=1 ; space<=N-i ;space++)
        {
            cout<<" ";
        }
        for(intstar = 1;star < = (2*i-1) ; star++
        {
            cout<<"*";
        }
    }
int main()
{
    int N;
    cin>>N;
    printTree(N);
    return 0;
}