#include<stdio.h>
#pragma warning (disable : 4996)
void printTriangle(int n)
{
for (int i = 0; i < n; i++)
{
for (int j = 0; j <= i; j++)
{
printf("%c", ((j == 0 || j == i) || i == n - 1) ? '*' : ' ');
}
printf("\n");
}
}
int main()
{
int n;
scanf("%d", &n);
printTriangle(n);
return 0;
}