// for (i=0; i<n;i++)
// for (i=1; i<=n;i++)
/*
#include <stdio.h>
int main ()
{
int arr [101][101]={0};
int n,i,j,k=1;
scanf("%d",&n);
for (j=1; j<=n; j++)
{
for (i=n; i>=1; i--)
{
arr [i][j]=k++;
}
}
for (i=1; i<=n; i++)
{
for (j=1; j<=n; j++)
{
printf("%d ",arr[i][j]);
}
printf("\n");
}
return 0;
}
*
/*
#include <stdio.h>
int main ()
{
int arr [101][101]= {0};
int n,m,i,j,k=1;
scanf("%d %d",&n,&m);
for (i=n; i>=1; i--)
{
for (j=m; j>=1; j--)
{
arr [i][j]=k++;
}
}
for (i=1; i<=n; i++)
{
for (j=1; j<=m; j++)
{
printf("%d ",arr[i][j]);
}
printf("\n");
}
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int arr [101][101]={0};
int n,m,i,j,k=1;
scanf("%d %d",&n,&m);
for (i=n; i>=1; i--)
{
for (j=1; j<=m; j++)
{
arr [i][j]=k++;
}
}
for (i=1; i<=n; i++)
{
for (j=1; j<=m; j++)
{
printf("%d ",arr[i][j]);
}
printf("\n");
}
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int arr [101][101]={0};
int n,m,i,j,k=1;
scanf("%d %d",&n,&m);
for (j=m;j>=1;j--)
{
for (i=n; i>=1; i--)
{
arr [i][j]=k++;
}
}
for (i=1; i<=n; i++)
{
for (j=1; j<=m; j++)
{
printf("%d ",arr[i] [j]);
}
printf("\n");
}
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int arr [101][101]={0};
int n,m,i,j,k=1;
scanf("%d %d",&n,&m);
for(j=m;j>=1;j--)
{
for (i=1;i<=n;i++)
{
arr [i][j]=k++;
}
}
for (i=1;i<=n;i++)
{
for(j=1;j<=m;j++)
{
printf("%d ",arr[i][j]);
}
printf("\n");
}
return 0;
}
*/
#include <stdio.h>
int main ()
{
int arr [21][21]={0};
int i,j,n,k=1;
scanf("%d",&n);
for ()
}