//        要清楚输出的先后顺序,先 空格 后 ※

#include<iostream>
using namespace std;
int main()
{
    int n, i, j;
    while (cin >> n)
    {
        for (i = 0; i < n; i++)
        {
            for (j = 0; j < n; j++)
            {
                if (j < i)
                    cout << " ";
                else
                    cout << "* ";

            }
            cout << endl;
       }
        }
        system("pause");
    return 0;
}