#include
int main()
{
int n,i,j;
scanf("%d",&n);
for(i=1;i<=n;++i)
for(j=1;j
printf(" ");
for(j=0;j<2*(n-i)+1;++j)
printf("%d",i);
printf("\n");
}
return 0;