#include<stdio.h>
int main(){
int n;
while(scanf("%d",&n)!=EOF){
int i,j,a,b;
a=b=1;
for(i=1;i<=n;++i){
a=a+i-1;j=i;
for(j,b=a;j<=n;++j,b=b+j){
printf("%d",b);
if(j!=n)
printf(" ");
else
printf("\n");
}
}
}
}