#include<iostream>
#include<iomanip>
#define N 21
using namespace std;
int main()
{
int a[N];
for(int i=0;i<21;i++)
a[i]=0;
a[N/2]=1;
for(int i=1;i<10;i++)
{
for(int j=0;j<21;j++)
{
if(a[j]==0) cout<<setw(2)<<" "<<setw(2);
else cout<<setw(2)<<a[j]<<setw(2);
}
cout<<endl;
for(int j=N/2-i;j<N/2+i+1;j=j+2)
{
a[j]=a[j-1]+a[j+1];
a[j-1]=0;
}
}
}