void funs(int s)
{
    int j = s+1;//行数
    int k = s+1;//第一行的星号数
    for (int b = 0; b < j; b++)
    {
        for (int c = 0; c < k; c++)
        {
            printf ("* ");
        }
        printf ("\n");
        k--;
    }
}
void funx(int x)
{
    int j = x;
    int k = 2;
    for (int b = 0; b < j; b++)
    {
        for (int c = 0; c < k; c++)
        {
            printf ("* ");
        }
        printf ("\n");
        k++;
    }
}
int main()
{
    int  a = 0;
    while ((scanf ("%d",&a)) != EOF)
    {
        //计算上半部分
        funs(a);
        //计算下半部分
        funx(a);
    }
    return 0;
}