#include<iostream>
using namespace std;
int main()
{
int n,r,c,m;
while(cin>>m){
for(n=0;n<=m-1;n++)
{
for(r=1;r<15-n;r++)
cout<<" ";
c=1;
cout<<c<<" ";
for(r=1;r<=n;r++)
{
c=c*(n-r+1)/r;
if(c<100)
if(c<10)
cout<<c<<" ";
else
cout<<c<<" ";
else
cout<<c<<" ";
}
cout<<endl;
}
}
}
using namespace std;
int main()
{
int n,r,c,m;
while(cin>>m){
for(n=0;n<=m-1;n++)
{
for(r=1;r<15-n;r++)
cout<<" ";
c=1;
cout<<c<<" ";
for(r=1;r<=n;r++)
{
c=c*(n-r+1)/r;
if(c<100)
if(c<10)
cout<<c<<" ";
else
cout<<c<<" ";
else
cout<<c<<" ";
}
cout<<endl;
}
}
}