# include<stdio.h>
void main()
{
int i,j,k,n;
for (i=1;i<4;i++)
{
for (j=0;j<i;j++)
printf("%c",j+49);
for (k=0;k<i-1;k++,j--)
printf("%c",j+47);
printf("\n");
}
}
# include<stdio.h>
int main()
{
int i,j,n;
scanf("%d",&n);
for (i=1;i<=n;i++)
{
for(j=0;j<n-i;j++)
printf(" ");
for (j=1;j<=i;j++)
printf("%d",j);
for (j=i-1;j>0;j--)
printf("%d",j);
printf("\n");
}
return 0;
}