include<stdio.h>

include<stdlib.h>

int main()
{
int t,i,j;
while (scanf("%d",&t) != EOF)
{char a[20][20];
for(j=0;j<t;j++)
{
for(i=0;i<t;i++)
{if(i<=j)
a[i][j]='';
else a[i][j]=' ';
}
}
for(j=2t-2;j>=t;j--)
{
for(i=0;i<t;i++)
{if(i+j<=2
t-2)
a[i][j]='
';
else a[i][j]=' ';
}
}

for(i=t-1;i>=1;i--)
{
    for(j=0;j<2*t-1;j++)
    printf("%c",a[i][j]);
    printf("\n");
}
for(i=0;i<t;i++)
{
    for(j=0;j<2*t-1;j++)
    printf("%c",a[i][j]);
    printf("\n");
}

}
system("pause");
return 0;

}